Unlisted
Edited
Mar 6, 2024
Insert cell
Insert cell
plot = Plot.plot({
x: { ticks: [] },
y: { grid: true },
fx: { type: "utc" },
color: { legend: true },
width,
marks: [
Plot.barY(data, {
x: (d) => `${d.category} - ${d.type}`,
y: "cnt",
fx: "date",
fill: (d) => `${d.category} - ${d.type}`,
tip: true
}),
Plot.ruleY([0])
]
})
Insert cell
Insert cell
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