Public
Edited
Jul 27, 2024
1 fork
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
conflictData
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
deaths = conflictData.filter(d => d.Year === 2022)
Insert cell
Insert cell
countryDeath = new Map(deaths.map(({Code, Deaths_OngoingConflicts}) => [Code, Deaths_OngoingConflicts]))
Insert cell
Insert cell
countryDeath.get("AFG")
Insert cell
Plot.plot({
width,
projection: { type: "mercator" },
marks: [
Plot.graticule(),
Plot.geo(land50m, { fill: "#000" }),
Plot.geo(countries50m, {
fill: (d) => countryDeath.get(d.Deaths_OngoingConflicts)
})
]
})
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
pakData
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
datasaurus.csv
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
Insert cell
Insert cell
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.
Learn more