Published
Edited
Aug 19, 2020
1 fork
Insert cell
Insert cell
chart = vl({
data: { values: publishes },
mark: "bar",
width,
autosize: "fit",
encoding: {
x: {
timeUnit: "yearmonth",
field: "date"
},
y: {
aggregate: "count",
type: "quantitative"
}
}
})
Insert cell
archive = d3.html("https://macwright.org")
Insert cell
publishes = [...archive.querySelectorAll(".writing > time")].map(elem => ({ date: new Date(elem.innerText) }))
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