Platform
Resources
Pricing
Sign in
Get started
1907040107
Workspace
Fork
Published
By
1907040107
Edited
Dec 30, 2021
1 fork
1
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.
Try it for free
Learn more
Fork
View
Export
DATA
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
sunburstPlot21
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
g2plot
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML