A variation around the SwarmPlot component. Well suited for large data sets as it does not impact DOM tree depth, however you'll lose the isomorphic ability and transitions.
You can optionally enable a voronoi mesh to capture user's
interactions, using the useMesh
property.
Even if the canvas implementation is faster, please note that if you have a lot of nodes calculating the underlying simulation will involve a lot of computing and will affect performance.
The responsive alternative of this component is
ResponsiveSwarmPlotCanvas
.
Chart data.
'id'
Property used to retrieve the node's unique identifier.
'value'
Property used to retrieve the node's value.
Optional formatter for values.
Available groups.
'group'
Propety used to group nodes, must return a group which is available in the groups property.
6
How to compute node size, static or dynamic.
2
Spacing between nodes.
Chart width.
Chart height.
'Depends on device'
Adjust pixel ratio, useful for HiDPI screens.
Chart margin.