Platform
Resources
Pricing
Sign in
Get started
Edith M
Workspace
Fork
Published
Map Challenge
By
Edith M
Edited
Nov 29, 2021
Insert cell
#
Map Challenge : per day
Insert cell
maps_2019
=
d3
.
tsv
(
"https://raw.githubusercontent.com/dakvid/30DayMapChallenge/master/data/map_classification.tsv"
,
d
=>
(
{
...
d
,
year
:
2019
}
)
)
Insert cell
maps_2020
=
d3
.
tsv
(
"https://raw.githubusercontent.com/dakvid/30DayMapChallenge2020/main/data/classifications.tsv"
,
d
=>
(
{
...
d
,
year
:
2020
}
)
)
Insert cell
maps
=
[
...
maps_2020
,
...
maps_2019
]
.
filter
(
(
{
Day
}
)
=>
Day
!=
'Europe'
)
Insert cell
Plot
.
plot
(
{
y
:
{
grid
:
true
}
,
facet
:
{
data
:
maps
,
y
:
"year"
}
,
marks
:
[
Plot
.
barY
(
maps
,
Plot
.
groupX
(
{
y
:
"count"
}
,
{
x
:
"Day"
}
)
)
,
Plot
.
ruleY
(
[
0
]
)
]
}
)
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
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
maps_2019
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
maps_2020
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
maps
Add comment
Copy import
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML
Add comment
Select
Duplicate
Copy link
Embed
Delete
JavaScript
Markdown
HTML