Public
Edited
Apr 30
1 star
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Labor_Riots@1.csv
Type Table, then Shift-Enter. Ctrl-space for more options.

Insert cell
dateToViz
Insert cell
allDates = Array.from(
new Set(troops.map(d => +d.date))
)
.map(timestamp => new Date(timestamp))
.sort((a, b) => a - b)
Insert cell
yearToViz = dateToViz.getFullYear()
Insert cell
getPropertiesTable = function (gj) {
const props = [];
gj.features.forEach((feature) => {
props.push(feature.properties);
});
return props;
}
Insert cell
import {us} from "@observablehq/us-geographic-data"
Insert cell
nation = topojson.feature(us, us.objects.nation)
Insert cell
states = topojson.feature(us, us.objects.states)
Insert cell
counties = topojson.feature(us, us.objects.counties)
Insert cell
import { ForceGraph } from "@d3/force-directed-graph-component"
Insert cell
//viewof ordersForPlot = Inputs.radio(["Paulist", "Redemptorist"], {
// label: "Order"
//})
Insert cell
//yearForFilter = 1877
Insert cell
//viewof yearForFilter2 = Inputs.range([1852, 1894], { step: 1 })
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