Public
Edited
Feb 3, 2023
2 stars
Insert cell
Insert cell
Plot.cell(
data,
Plot.group(
{ fill: "count", title: (t) => `${t.length} tweets` },
{
x: (d) => date(d.timestamp).getHours(),
y: (d) => date(d.timestamp).getDay()
}
)
).plot({
color: { scheme: "reds", legend: true, ticks: 5, nice: true },
x: { label: "time of day" },
y: {
tickFormat: (day) => ["Sun", "Mon", "Tue", "Wed", "Thu", "Fri", "Sat"][day]
}
})
Insert cell
date = (t) => new Date(t.slice(0, 16))
Insert cell
import { data } from "9bb1887a7589f92f"
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