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.
Click the generate button in order to generate the chart.
You can customize settings by using dedicated controls.
The hierarchical data object.
The key or function to use to retrieve nodes identity.
The key or function to use to retrieve nodes value.
Strategy used to compute nodes.
Only render leaf nodes (no parent).
Padding between parent and child node. Padding between parent and child node. Adjust pixel ratio, useful for HiDPI screens.
Defines how to compute node color. Control node border width.
modifiersMethod to compute border color.
Defines patterns and gradients. Defines rules to apply patterns and gradients
Skip label rendering if node minimal side length is lower than given value, 0 to disable.
Orient labels according to max node width/height.
modifiersMethod to compute label text color.
Enable/disable interactivity. onClick handler, it receives clicked node data and style plus mouse event.