About this endpoint
What it does
Generates a calendar heatmap chart image from the supplied data and title, then returns the generated image as a binary response.
Request Body
| Parameter | Type | Mandatory | Description |
|---|---|---|---|
| data | Object Array | Yes | Array of { date, value } objects used to build the chart. Each item must include the date and numeric value. |
| data[].date | String | Yes | Date in YYYY-MM-DD format. |
| data[].value | Number | Yes | Value for the given date. |
| title | String | Yes | Chart title. Must be at least 1 character long. |
| options | Object | No | Optional chart color settings. See schema for nested fields. |
| options.color_low | String | No | 6-character hex color without the leading # symbol. |
| options.color_med | String | No | 6-character hex color without the leading # symbol. |
| options.color_high | String | No | 6-character hex color without the leading # symbol. |
| options.color_empty | String | No | 6-character hex color without the leading # symbol. |
| options.color_med_low | String | No | 6-character hex color without the leading # symbol. |
Response
Returns a binary response containing the generated chart image.