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

# Pie Chart Generator

Generate pie chart images from labeled values with optional colors, theme, and sizing. Get a binary image or a pre-signed URL for reports and dashboards.

## Endpoints

| Method | Path | Description | Atoms |
| --- | --- | --- | --- |
| POST | `generate/charts/pie/file` | What it does Generates a pie chart image from the supplied chart data and returns the image as bina… | 60 |
| POST | `generate/charts/pie/url` | What it does Generates a pie chart link from the chart configuration in the request body and return… | 60 |

## About

## What it does
Pie Chart Generator turns a set of labeled values into a pie chart image or a shareable chart link. Send a required `title` and a `data` array, where each item includes `label` and `value`, and you can optionally add `color` for each slice. You can also set `theme` to `light` or `dark` and fine-tune `options` such as `width`, `height`, `title_style`, and `canvas_color`.

Use `/download` when you need a binary chart image for a report, dashboard export, email attachment, or generated asset pipeline. Use `/link` when you want a pre-signed URL to the generated chart image instead of the file itself. Both endpoints are built around the same chart inputs, so you can switch between a direct download and a hosted image without changing your chart data.

Pie Chart Generator is a fit for product mix charts, budget breakdowns, survey results, and other share-of-total visualizations. Each slice is defined by a label and non-negative value, so the output stays predictable and easy to render in downstream systems.

If you need a quick way to turn structured totals into a chart image, this service keeps the contract simple: define the title, pass the values, and get back either the image bytes or a URL to the generated chart.

## Usage

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