---
title: Donut Chart Generator
slug: generate-donut-chart
url: https://apyverse.com/apyhub/service/generate-donut-chart
provider: ApyHub
categories: [Image Processing, Smart Generation]
tags: [donut-chart, chart-generation, data-visualization, image-generation, reporting]
auth: api_key
---

# Donut Chart Generator

Create donut chart images from a title and labeled values. Get a binary image or a pre-signed URL for dashboards, reports, and summaries.

## Endpoints

| Method | Path | Description | Atoms |
| --- | --- | --- | --- |
| POST | `/download` | What it does Generates a donut chart image from the chart configuration sent in the request body an… | 10 |
| POST | `/link` | What it does Generates a donut chart link from the chart configuration in the request body and retu… | 10 |

## About

## What it does
Donut Chart Generator creates donut chart images from a title, chart data, and an optional theme. Send a `title` and a `data` array of labeled values; each item can also include a 6-character hex `color` without the `#` prefix. You can set `theme` to `light` or `dark`, and the deprecated `slices` field is still accepted as an alias for `data`, but not both in the same request.

Use `POST /download` when you want the rendered chart as a binary image. Use `POST /link` when you want a pre-signed URL back in a JSON response. In both cases, the service is built around the same chart definition, so you can generate the image once and reuse the link in emails, dashboards, reports, or internal admin tools.

This is a good fit for visualizing category splits, subscription status, survey results, or other part-to-whole metrics. For example, you can turn `Active`, `Trial`, and `Cancelled` counts into a chart with a clear title and custom slice colors, then embed the result wherever your application needs a compact summary graphic.

## Usage

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyverse.com/apyhub/service/generate-donut-chart
