Published
Edited
Sep 12, 2022
1 star
Insert cell
Insert cell
Insert cell
// waiting for it, converting value to a Date, zeroth month, day one
dummydata1 = (await FileAttachment("dummyData.csv").csv({typed: true})).map(d => ({ ...d, year: new Date(d.year, 0, 1) }))
Insert cell
Insert cell
Plot.plot({
x: {
ticks
},
marks: [
Plot.rectY(dummydata1, {
x: "year",
y: "n",
interval: d3.utcYear,
fill: "forestgreen"
})
]
})
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
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