Platform
Resources
Pricing
Sign in
Get started
Haoyu Li
Workspace
Fork
Public
Exercises
By
Haoyu Li
Edited
Apr 30
5 forks
Exercises
D3 SVG
D3 Select
D3 Data Binding
D3 Data Transformation and Scale Functions
D3 Axes and Shapes
D3 Layouts
D3 Tree Layouts
D3 Force Directed Layout
D3 Interaction
D3 Geographical Map
Insert cell
Insert cell
{
// Dataset
var
cities
=
[
{
name
:
'London'
,
population
:
8674000
}
,
{
name
:
'New York'
,
population
:
8406000
}
,
{
name
:
'Sydney'
,
population
:
4293000
}
,
{
name
:
'Paris'
,
population
:
2244000
}
,
{
name
:
'Beijing'
,
population
:
11510000
}
]
;
}
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
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML