Public
Edited
Nov 27, 2023
Importers
Insert cell
Insert cell
people = d3.group(dataset, d => d.person)
Insert cell
Insert cell
dataset = (await d3.tsv(uri, d3.autoType)).map(d => ({
date: new Date(Date.UTC(d.year, d.month-1, d.day, d.hour, d.minute)),
...d,
}))
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
{
const svg = d3
.create("svg")
.attr("viewBox", [0, 0, width, (width * 15) / 21]);
svg
.append("rect")
.attr("width", width)
.attr("height", (width * 15) / 21);
return svg.node();
}
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