This component is heavily inspired by
this demo.
The responsive alternative of this component is ResponsiveCalendar
,
it also offers a canvas implementations, see
CalendarCanvas.
See the dedicated guide on how to setup
legends for this component.
Start interacting with the chart to log actions
Base
start date
end date
center
defines how calendar should be aligned inside chart container.Adjust pixel ratio, useful for HiDPI screens. Style
Define style for common elements such as labels, axes… Years
define spacing between each year row/column depending on the direction. can be used to customize years label, returns 'YYYY' by default.
define offset from year edge to its label. Months
define spacing between each month row/column depending on the direction. can be used to customize months label, returns abbreviated month name (english) by default. This can be used to use a different language
define offset from month edge to its label. Days
define spacing between each day cell. Interactivity
onClick handler, it receives clicked day data and mouse event.