The TreeMapcomponent is available in the nivo
HTTP rendering API.
The API generates a SVG and return a path to this SVG
which can then be easily embedded.
The api accepts almost the same properties as the regular component, in json, however it's not interactive and you cannot use code in properties (functions).
Please note that the demo API server is installed on heroku using a free plan, so it might be unavailable from times to times.
no response available
The hierarchical data object.
'id'The key or function to use to retrieve nodes identity.
'value'The key or function to use to retrieve nodes value.
Value format supporting d3-format notation, this formatted value will then be used for labels and tooltips.
'squarify'Strategy used to compute nodes.
falseOnly render leaf nodes (no parent).
0Padding between parent and child node.
0Padding between parent and child node.
Chart width for non-responsive component.
Chart height for non-responsive component.
'Depends on device'Adjust pixel ratio, useful for HiDPI screens.
Chart margin.