Published
Edited
Dec 30, 2021
1 fork
Insert cell
DATA = FileAttachment("root.json").json()
Insert cell
<div id="drilldown-container21"></div>
Insert cell
sunburstPlot21 = {
const p = new g2plot.Sunburst("drilldown-container21", {
data: DATA,
theme: "custom",
innerRadius: 0.3,
interactions: [{ type: "element-active" }],
hierarchyConfig: {
field: "sum"
}
});

p.render();
return p;
}
Insert cell
g2plot = require('@antv/g2plot')
Insert cell

Purpose-built for displays of data

Observable is your go-to platform for exploring data and creating expressive data visualizations. Use reactive JavaScript notebooks for prototyping and a collaborative canvas for visual data exploration and dashboard creation.
Learn more