Published
Edited
Oct 28, 2020
5 stars
Insert cell
md`# Changes to polling places`
Insert cell
chart('Cuyahoga', 'Ohio', cuyahoga, 'vote');
Insert cell
radialLegend = (extent, label) => legendCircle()
.tickValues(extent.map(Math.ceil))
.tickFormat((d, i, e) => i === e.length - 1 ? d + label : d)
.scale(
d3.scaleSqrt()
.domain([0, Math.ceil(extent[1])])
.range([0, 40])
)
.tickSize(15); // defaults to 5
Insert cell
chart('Cabarrus', 'North Carolina', cabarrus, 'vote');
Insert cell
Insert cell
grid(cuyahoga)
Insert cell
grid(fulton)
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
cuyahogaNice = await FileAttachment("cuyahoga-detail.json").json()
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
d3 = require('d3')
Insert cell
numeral = require('numeral')
Insert cell
import { legendCircle } from "@harrystevens/circle-legend";
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