Platform
Resources
Pricing
Sign in
Get started
Jonathan Terrell
Workspace
Fork
Public
By
Jonathan Terrell
Edited
Aug 1, 2021
Fork of
Test (ECharts)
•
1 fork
Insert cell
Insert cell
Insert cell
Insert cell
visualise
=
async
container
=>
{
const
visualiser
=
await
new
AntVG2
.
Visualiser
(
container
,
options
)
.
build
(
)
;
container
.
replaceChildren
(
visualiser
.
element
)
;
return
visualiser
;
}
Insert cell
Insert cell
Insert cell
Insert cell
options
=
(
{
data
:
[
{
genre
:
'Sports'
,
sold
:
275
}
,
{
genre
:
'Strategy'
,
sold
:
115
}
,
{
genre
:
'Action'
,
sold
:
120
}
,
{
genre
:
'Shooter'
,
sold
:
350
}
,
{
genre
:
'Other'
,
sold
:
150
}
]
,
setup
:
chart
=>
{
chart
.
interval
(
)
.
position
(
'genre*sold'
)
;
}
}
)
Insert cell
Insert cell
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
Compare fork
Fork
View
Export
narrative_1
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
visual_1
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
visualise
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
data
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
options
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML