Published
Edited
Oct 15, 2019
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
Insert cell
cellSize = 17
Insert cell
width = 964
Insert cell
height = cellSize * (weekday === "weekday" ? 7 : 9)
Insert cell
timeWeek = weekday === "sunday" ? d3.utcSunday : d3.utcMonday
Insert cell
countDay = weekday === "sunday" ? d => d.getUTCDay() : d => (d.getUTCDay() + 6) % 7
Insert cell
Insert cell
formatDate = d3.utcFormat("%x")
Insert cell
formatDay = d => "DLMMJVS"[d.getUTCDay()]
Insert cell
formatMonth = d3.utcFormat("%b")
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