Description
calendar-heatmap is a D3 chart that shows time series data as a calendar heatmap, inspired by the contribution chart on GitHub. Each day is a cell, colored by its count, and the chart includes a legend. You pass in an array of items that each have a date and a count, and the README says any date that new Date() can parse will work, or you can supply a custom dateParser. The data should be rolled up into daily buckets. A long list of options controls the look and behavior: the selector to attach to, width and height, cell size and padding, an option to fit the cells to the width, the start date, the first day of the week (Sunday or Monday), a color range from light to dark, and the labels and formatters for days, months and the legend. You can also set callbacks for clicks, hovers, focus and blur on each day, and the chart can render an accessible screen-reader table of its values. The README notes that the project is not actively maintained, so check it before relying on it for new work.…
Highlights
- GitHub-style calendar heatmap in D3
- Custom color range and legend
- Day click, hover and focus callbacks
- Accessible screen-reader table
Ratings & Reviews
No ratings yet
Be the first to rate Calendar Heatmap.
People also visit

d3-visualization
Teaches the agent to produce D3 charts and interactive data visualizations
Calendar Heatmap FAQ
What does calendar-heatmap do?
It draws a calendar heatmap of daily counts, similar to GitHub's contribution chart, using D3.
What data format does it need?
An array where each item has a date and a count. Any date string that new Date() can parse works, or you can provide a custom dateParser.
Can I customize the colors and layout?
Yes. Options include the color range, the cell size and padding, a fit-to-width mode, the legend steps and the week start day.
Does it support clicks and tooltips?
Yes. It has tooltip support and callbacks for click, hover, leave, focus and blur on each day.
Is it still maintained?
The README says the project is not actively maintained.
Is it accessible?
The README recommends the accessibility options. It can render a screen-reader table of all values and sets an aria label and description.
What are the best Calendar Heatmap alternatives?
Popular alternatives to Calendar Heatmap include Just Dashboard, DayFlow and FusionCharts. See all Calendar Heatmap alternatives









