Platform
Resources
Pricing
Sign in
Get started
Youjin Shin | 신유진
Data Visualization Specialist | Previously @WashingtonPost @WallStreetJournal @MITSenseableCity
Workspace
Fork
Public
D3.js
By
Youjin Shin | 신유진
Edited
Feb 17, 2023
1
D3.js
Train schedule from Seoul to Busan
Resources for future well-being
Average temperature anomaly, Global
Grid Cartogram
Aging population
Annual working hours vs. GDP per capita
Directors and stars constellation
Insert cell
Insert cell
Insert cell
Insert cell
data
.
get
(
'South Korea'
)
Insert cell
yScale
=
d3
.
scaleLinear
(
)
.
domain
(
annual_workinghours_ext
)
.
range
(
[
height
-
margin
.
bottom
,
margin
.
top
]
)
Insert cell
Insert cell
Insert cell
xScale
=
d3
.
scaleLinear
(
)
.
domain
(
gdp_percapita_ext
)
.
range
(
[
margin
.
left
,
width
-
margin
.
right
]
)
Insert cell
data
=
d3
.
group
(
raw_data
,
d
=>
d
.
country
)
Insert cell
countries
=
[
...
new
Set
(
raw_data
.
map
(
d
=>
d
.
country
)
)
]
Insert cell
annual_workinghours_ext
=
d3
.
extent
(
raw_data
,
d
=>
d
.
annual_workinghours
)
Insert cell
gdp_percapita_ext
=
d3
.
extent
(
raw_data
,
d
=>
d
.
gdp_percapita
)
Insert cell
Insert cell
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
Fork
View
Export
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
yScale
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
margin
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
height
Edit
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
xScale
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
data
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
countries
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
annual_workinghours_ext
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
gdp_percapita_ext
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
raw_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
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Edit
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML