Skip to content

Function: addSunburst()

ts
function addSunburst(plot, opts): PatchesLayer;

Defined in: charts/sunburst.ts:121

Build a sunburst from a hierarchy and add it as a PatchesLayer centered at (0,0). Set the plot's equalAspect: true so the rings stay circular.

Parameters

ParameterType
plotPlot
optsSunburstOptions

Returns

PatchesLayer

MIT licensed. WebGL2 required.