A tree map component using d3-hierarchy.treemap, see this demo.
You can fully customize it using nodeComponent
property to define
your own node component, if you wish to do so you should have a look at
native SVG node component
for available properties.
The responsive alternative of this component is ResponsiveTreeMap
,
it also offers other implementations, see
TreeMapHtml and
TreeMapCanvas.
The TreeMap
component is also available in the @nivo/api
,
see sample
or try it using the API client.
'id'
'value'
'squarify'
false
0
0
'Depends on device'
0.33
1
true
true
true
20
'top'
6
true
true
'gentle'