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 HTML node component
for available properties.
The responsive alternative of this component is
ResponsiveTreeMapHtml, it also offers other
implementations, see TreeMap and
TreeMapCanvas.
Actions Logs
Start interacting with the chart to log actions
Base
objectrequired
The hierarchical data object.
string | Functionoptionaldefault:'id'
The key or function to use to retrieve nodes identity.
string | Functionoptionaldefault:'value'
The key or function to use to retrieve nodes value.
string | Functionoptional
open editor
Value format supporting d3-format notation, this formatted value
will then be used for labels and tooltips.
stringoptionaldefault:'squarify'
squarify
Strategy used to compute nodes.
booleanoptionaldefault:false
Only render leaf nodes (no parent).
numberoptionaldefault:0
px
Padding between parent and child node.
numberoptionaldefault:0
px
Padding between parent and child node.
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
string | Function | string[]optionaldefault:{"scheme":"nivo"}