Platform
Resources
Pricing
Sign in
Get started
Bairui Su
Creative generation toolmaker, believe that today's tool help shape tomorrow’s art. Creator Charming.js. Author @antv/g2@5.x.
Workspace
Fork
Published
G2 5.0
By
Bairui SU
Edited
Sep 4, 2022
Importers
G2 5.0
G2: Gallery
🔧 G2: Bar Chart
🔧 G2: Bar Chart, Horizontal
🔧 G2: Bar Chart, Diverging
🔧 G2: Stacked Bar Chart
🔧 G2: Stacked Bar Chart, Horizontal
🔧 G2: Stacked Bar Chart, Normalized
🔧 G2: Bar Chart, Grouped
🔧 G2: Stacked Bar Chart, Diverging
🔧 G2: Marimekko Chart
🔧 G2: World History Timeline
🔧 G2: Stacked Bar Chart, Revenue by Music Format, 1973–2018
🔧 G2: Bars, Vega-Lite
🔧 G2: Pie Chart, Theta
G2: Radical Bars, G24.0
🔧 G2: Electricity Usage of Mike Bostock, 2019
🔧 G2: The Impact of Vaccines
G2: Streamgraph Transitions
G2: Map Demo
G2: Utils
Insert cell
Insert cell
function
node
(
chart
)
{
const
node
=
chart
.
node
(
)
;
node
.
options
=
(
)
=>
chart
.
options
(
)
;
return
node
;
}
Insert cell
function
h2
(
{
title
=
""
,
link
=
""
}
=
{
}
)
{
return
htl
.
html
`<h2><a href="${
link
}" target="_blank">${
title
}</a></h2>`
;
}
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
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
node
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
h2
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML