NetworkCanvas

@nivo/networkcanvasexperimental

A variation around the Network component. Well suited for large data sets as it does not impact DOM tree depth, however you'll lose the isomorphic ability and transitions.

The responsive alternative of this component is ResponsiveNetworkCanvas.

122 nodes
Actions Logs
Start interacting with the chart to log actions
Base
numberrequired

Chart width.

numberrequired

Chart height.

numberoptionaldefault:'Depends on device'

Adjust pixel ratio, useful for HiDPI screens.

supportsvgcanvas
objectoptional
px
px
px
px

Chart margin.

Simulation
number | string | (link: Link) => numberoptional

Control links' distance.

numberoptionaldefault:10

Control how nodes repel each other.

numberoptionaldefault:1

Sets the minimum distance between nodes for the many-body force.

numberoptionaldefault:Infinity

Sets the maximum disteance between nodes for the many-body force.

numberoptionaldefault:90

Adjust the simulation quality.

Nodes
string | (node: Node) => stringoptional

Control nodes' color.

number | (node: Node) => numberoptionaldefault:0
px

Control nodes' border width.

string | object | (link: Link) => stringoptionaldefault:{"from":"color"}
inheritthemecustom
theme property
background

Control nodes' border color.

Links
Interactivity
Functionoptional

Custom tooltip component.

(node, event) => voidoptional

onClick handler.

Customization
('links' | 'nodes')[] | FunctionComponent<LayerProps>optionaldefault:['links', 'nodes']

Defines the order of layers and add custom layers.

Motion
booleanoptionaldefault:true

Enable/disable transitions.

supportsvgcanvas
numberoptionaldefault:90

Motion stiffness.

supportsvgcanvas
numberoptionaldefault:15

Motion damping.

supportsvgcanvas