Published
Edited
Oct 6, 2020
1 star
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
year = select(["2018", "2016", "2014"])
Insert cell
queryUrlDemographics = `https://cwf-election-data.herokuapp.com/election-data/censusdata18.json?_sort=${sort}&${field}__${operation}=${amount}&_shape=array&_size=4000`
Insert cell
selectionDemographics = d3.json(queryUrlDemographics)
Insert cell
Insert cell
selectionDemographics.sort((a, b) => a.NAME.localeCompare(b.NAME))
Insert cell
Insert cell
height = 500
Insert cell
Insert cell
import {
selectedFields,
niceLabel,
countyShapes
} from "@enjalot/us-county-datasets"
Insert cell
import { select, autoSelect, slider } from "@jashkenas/inputs"
Insert cell
d3 = require("d3@6")
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