apyhub
IMAGE PROCESSING · SMART GENERATION

Calendar Heatmap Chart

What it does

Calendar Heatmap Chart generates a calendar-style heatmap image or a pre-signed download link from dated numeric data. Send a title and an array of {date, value} objects, and get back a chart you can embed in dashboards, reports, or internal tools.

Use the /download endpoint when you want the chart image itself. It accepts a body object with a required title, a required data array, and an optional options object for custom colors. Each data point needs a date in YYYY-MM-DD format and a numeric value. The response is binary image data. Use /link with the same request body when you want a JSON response containing a data field with a pre-signed URL to the generated PNG.

Calendar Heatmap Chart is a good fit for showing daily activity, commits, sign-ins, completed tasks, or any other metric that changes over time. It makes sparse or seasonality-heavy data easy to scan at a glance, especially when you need a compact year view instead of a line chart.

If you need a chart image generated from date/value records and want simple color control through hex values, this API keeps the input shape small and the output straightforward.

▣ ENDPOINT 01 / 02
POST
Generate calendar heatmap chart image
https://api.eu.apyverse.com/apyhub/generate-calendar-heatmap-chart/download

QUICKSTART

GUIDE

Quickstart

Generate a calendar heatmap chart image from a title and at least one date/value data point.

curl -X POST "https://api.eu.apyverse.com/apyhub/generate-calendar-heatmap-chart/download" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{
    "title": "Daily User Activity",
    "data": [
      {
        "date": "2026-06-01",
        "value": 3
      }
    ]
  }'

What you'll get back

Returns binary data (string with contentEncoding: "binary"), which is the generated chart file.

(binary file content)
TRY ITLIVE · 10 ATOMS
Loading your default key…
The full key is used to call the gateway and stays in this tab — never sent to orbit or saved.
body*
data*
data-1*
Date in YYYY-MM-DD format.
options
6-character hex color without the leading # symbol.
6-character hex color without the leading # symbol.
6-character hex color without the leading # symbol.
6-character hex color without the leading # symbol.
6-character hex color without the leading # symbol.

About this endpoint

What it does

Generates a calendar heatmap chart image from a chart title and an array of dated numeric values, then returns the rendered image as binary data.

Request Body

ParameterTypeMandatoryDescription
titleStringYesChart title.
dataObject ArrayYesArray of date/value points used to build the heatmap. Each item requires date and value.
data[].dateStringYesDate in YYYY-MM-DD format.
data[].valueNumberYesNumeric value for the date.
optionsObjectNoOptional chart styling options.
options.color_lowStringNo6-character hex color without the leading # symbol.
options.color_medStringNo6-character hex color without the leading # symbol.
options.color_highStringNo6-character hex color without the leading # symbol.
options.color_emptyStringNo6-character hex color without the leading # symbol.
options.color_med_lowStringNo6-character hex color without the leading # symbol.

Response

Returns a binary response body containing the generated chart image. The output schema is a string with contentEncoding: binary, so the success response is the image file itself rather than a JSON object.

Query parameters

Name
Type
Description
outputOPTIONAL
string

Body

Name
Type
Description
bodyREQUIRED
object
▣ COMMON ERRORS

Errors any endpoint can return

400bad_request

Required parameter missing or malformed body.

401unauthorized

API key missing, revoked, or not authorized for this service.

429rate_limited

Your plan's per-second rate exceeded. Retry with exponential backoff.

503upstream_busy

Backend temporarily unavailable. Try again in a few seconds.