Skip to main content

Activity Heatmap

Show a year of daily counts as a grid of days, shaded by how much happened.

View as Markdown

Installation

Component API

PropTypeDefaultDescription
dataActivityDay[]-
endstring-
weeksnumber53How many weeks back from end, each a column starting on Monday.
How many weeks back from end, each a column starting on Monday.
labelstringActivityThe heading over the grid, and its accessible name.
The heading over the grid, and its accessible name.
unitstringcontributionsWhat a count counts, in the plural, for the total & each day's label.
What a count counts, in the plural, for the total & each day's label.
localestringen-USFormats the month and day names.
Formats the month and day names.
sizesm | mdmdSize of each day.
Size of each day.
shapenone | roundedrounded
classNamestring-
focusboolean | stringtrue