Published
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.
Learn more