Public
Edited
Sep 11, 2024
1 fork
Importers
8 stars
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
counties = FileAttachment("us_regional_hiearchy@1.csv").csv()
Insert cell
map_data = {
let map_data = await FileAttachment("states_regions_divisions.json").json();

let regions = topojson.feature(map_data, map_data.objects.regions);
let divisions = topojson.feature(map_data, map_data.objects.divisions);
let states = topojson.feature(map_data, map_data.objects.states);

return { regions, divisions, states };
}
Insert cell
map_data.divisions.features.map((o) => o.properties)
Insert cell
tippy_style = html`<link rel="stylesheet" href="${await require.resolve(
`tippy.js/themes/light-border.css`
)}">`
Insert cell
tippy = require("tippy.js@6")
Insert cell
import { Pack } from "@d3/pack"
Insert cell
Array.from(
new Set(counties.map((o) => `/US/${o.region}/${o.division}/${o.state}`))
)
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