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.
Click the generate button in order to generate the chart. You can customize settings by using dedicated controls.
generate
Response n/a
no response available
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"}