A network component connecting nodes with links using various forces,
the resulting layout will depends on linkDistance
, centeringStrength
and repulsivity
, so you should play with those parameters in order
to achieve the desired result.
You can also add some extra constrains via distanceMin
and distanceMax
.
The responsive alternative of this component is ResponsiveNetwork
.
Please note that you can also use the useNetwork
React hook if you want
to handle the rendering by yourself, it accepts an object with almost
the same props as the component and returns computed nodes & links.
Chart data defining nodes and links.
Chart width.
Chart height.
'Depends on device'
Adjust pixel ratio, useful for HiDPI screens.
Chart margin.