Altair — Calendar Heatmap
ExperimentalGitHub-style 365-day grid: weeks across, days of the week down. Colour interpolates from surface to accent based on activity. Hover any cell for the exact date.
Notes
- Each cell is a Vega-Lite
rectwith x = week, y = weekday. The colour scale is a two-stop linear interpolation, which renders as a continuous palette rather than the 5-step discrete one we used in the Plot version. - Tooltips show ISO-date, weekday name, and activity count — all from declarative
encoding.tooltipentries. - Vega-Lite’s
legendrenders an automatic colour gradient. We kept the title short (Activity) and pinnedgradientLengthto keep it compact. - Pseudo-random data is generated once at module scope with a deterministic seed so SSR and client agree on cell values.