The Calendar
component is available in the nivo
HTTP rendering API.
The API generates a SVG and return a path to this SVG
which can then be easily embedded.
The api accepts almost the same properties as the regular component, in json, however it's not interactive and you cannot use code in properties (functions).
Please note that the demo API server is installed on heroku using a free plan, so it might be unavailable from times to times.
no response available
Chart data.
start date
end date
Chart width.
Chart height.
'Depends on device'
Adjust pixel ratio, useful for HiDPI screens.
Chart margin.
'horizontal'
defines calendar layout direction.
'center'
defines how calendar should be aligned inside chart container.
0
Minimum value.
'auto'
Maximum value.
Define style for common elements such as labels, axes…
'#61cdbb'
, '#97e3d5'
, '#e8c1a0'
, '#f47560'
]Cell colors.
'#fff'
#eeeeee
color to use to fill days without available value.
30
define spacing between each year row/column depending on the direction.
can be used to customize years label, returns 'YYYY' by default.
'before'
defines year legends position.
10
define offset from year edge to its label.
0
define spacing between each month row/column depending on the direction.
2
width of month borders.
'#000'
#ffffff
color to use for months border.
can be used to customize months label, returns abbreviated month name (english) by default. This can be used to use a different language
'before'
defines month legends position.
10
define offset from month edge to its label.
0
define spacing between each day cell.
1
width of days border.
'#000'
#ffffff
color to use for days border.
true
Enable/disable interactivity.
onClick handler, it receives clicked day data and mouse event.
Custom tooltip component.
Showcase custom tooltip.