Public
Edited
Feb 12
Insert cell
# Assignment 1
Insert cell
d3 = require("d3@5")
Insert cell
topojson = require("topojson-client@3")
Insert cell
countries = FileAttachment("UK_Countries_WGS84.json").json()
Insert cell
countries_features = topojson.feature(countries, countries.objects.UK_Countries_WGS84)
Insert cell
csv_data = d3.csvParse(await FileAttachment("UK_Population_Estimates_Five.csv").text(),({Code, Deaths, Pop2022}) => [Code, +Deaths/+Pop2022 * 100000])
Insert cell
crudedeathrate = Array.from(csv_data.values(), d => d[1])
Insert cell
mappeddata = Object.assign(new Map(csv_data), {title: ["Crude Death Rate in British Countries"]})
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