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

One platform to build and deploy the best data apps

Experiment and prototype by building visualizations in live JavaScript notebooks. Collaborate with your team and decide which concepts to build out.
Use Observable Framework to build data apps locally. Use data loaders to build in any language or library, including Python, SQL, and R.
Seamlessly deploy to Observable. Test before you ship, use automatic deploy-on-commit, and ensure your projects are always up-to-date.
Learn more