Published
Edited
May 30, 2020
1 fork
Insert cell
Insert cell
Insert cell
Insert cell
counties_topo = topojson.feature(basepolygons, basepolygons.objects.CO_counties)
Insert cell
height = 600
Insert cell
width = 650
Insert cell
path_points = d3.geoPath().projection(projection)
Insert cell
path_basemap = d3.geoPath().projection(projection)
Insert cell
projection = d3.geoTransverseMercator().rotate([105,-80]).fitExtent([[80, 80], [width, height]], counties_topo);
Insert cell
format = d3.format(".4s")
Insert cell
d3.max([...data.values()])
Insert cell
d3.min([...data.values()])
Insert cell
radius(14350)
Insert cell
radius = d3.scaleSqrt([d3.min([...data.values()]), d3.max([...data.values()])], [5, 15])
Insert cell
data = Object.assign(new Map(csv_data))
Insert cell
csv_data = d3.csvParse(await FileAttachment("Colorado (1).csv").text(),({Name, Elevationft}) => [Name, +Elevationft])
Insert cell
points = FileAttachment("Colorado.geojson").json()
Insert cell
basepolygons = FileAttachment("CO_counties.json").json()
Insert cell
simple = require("simple-statistics@7.0.7/dist/simple-statistics.min.js")
Insert cell
topojson = require("topojson-client@3")
Insert cell
d3 = require("d3@5")
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