Public
Edited
Apr 17, 2023
2 forks
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
Data = {
const walmarts = await FileAttachment("walmarts.tsv").tsv({ typed: true }),
elections = await FileAttachment("us-presidential-election-2020.csv").csv();
return { walmarts, elections };
}
Insert cell
Insert cell
Geography = {
const us = await FileAttachment("us-counties-10m.json").json();

const nation = topojson.feature(us, us.objects.nation),
states = topojson.feature(us, us.objects.states),
counties = topojson.feature(us, us.objects.counties),
statemesh = topojson.mesh(us, us.objects.states, (a, b) => a !== b),
countrymesh = topojson.mesh(us, us.objects.counties, (a, b) => a !== b);

return { us, nation, states, counties, statemesh, countrymesh };
}
Insert cell
d3 = require("d3")
Insert cell
snipaste_20230417_213618 = FileAttachment("Snipaste_2023-04-17_21-36-18.png").image()
Insert cell
snipaste_20230417_213628 = FileAttachment("Snipaste_2023-04-17_21-36-28.png").image()
Insert cell
snipaste_20230417_213635 = FileAttachment("Snipaste_2023-04-17_21-36-35.png").image()
Insert cell
snipaste_20230417_213645 = FileAttachment("Snipaste_2023-04-17_21-36-45.png").image()
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