Skip to content

Function: addTreemap() ​

ts
function addTreemap(plot, opts): PatchesLayer;

Defined in: charts/treemap.ts:158

Add a squarified treemap: one filled rect Patch per item plus centered labels. Composes Plot.addPatches — low-risk, no new layer type.

Parameters ​

ParameterType
plotPlot
optsTreemapOptions

Returns ​

PatchesLayer

MIT licensed. WebGL2 required.