CirclePackingCanvas

@nivo/circle-packinghierarchycanvas

A variation around the CirclePacking component.

Well suited for large data sets as it does not impact DOM tree depth, however you lose the isomorphic ability and transitions.

The responsive alternative of this component is ResponsiveCirclePackingCanvas. It also offers other implementations, see CirclePacking and CirclePackingHtml.

roll the dice
800 nodes
Actions Logs
Start interacting with the chart to log actions
Base
objectrequired

Chart data, which should be immutable.

string | Functionoptionaldefault:'id'

Id accessor.

string | Functionoptionaldefault:'value'

Value accessor

string | (value: number) => string | numberoptional
open editor

Optional formatter for values.

numberoptionaldefault:0
px

Padding between each circle.

booleanoptionaldefault:false
   

Only render leaf nodes (skip parent nodes).

numberrequired

Chart width.

numberrequired

Chart height.

numberoptionaldefault:'Depends on device'

Adjust pixel ratio, useful for HiDPI screens.

supportsvghtmlcanvasapi
objectoptional
px
px
px
px

Chart margin.

Style
Labels
Interactivity
Motion