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

# Stacked Bar Chart Generator

Generate stacked bar chart images from structured series data, with light or dark themes and layout options. Get a downloadable file or a pre-signed image URL.

## Endpoints

| Method | Path | Description | Atoms |
| --- | --- | --- | --- |
| POST | `generate/charts/stacked/url` | What it does Generates a stacked bar chart and returns a link to the generated chart image. The req… | 60 |
| POST | `generate/charts/stacked/file` | What it does Generates and downloads a stacked bar chart image from the chart configuration supplie… | 60 |

## About

## What it does
Stacked Bar Chart Generator turns structured series data into a stacked bar chart image or a downloadable chart link. Send a title, a `data` array, and optional `theme` or `options`; get back either a pre-signed URL in `data` from `/link` or binary image output from `/download`.

Each data point includes a `name` and a `values` array. Inside each value, you can provide a `label`, a numeric `value`, and an optional hex `color`. You can also set per-bar `width` and control chart presentation with `options` such as `width`, `height`, `spacing`, `bar_width`, `canvas_color`, `background_padding`, axis font settings, and title styling.

Use Stacked Bar Chart Generator when you need to compare parts of a whole across categories, such as revenue vs. cost by quarter, traffic sources by month, or budget allocation by team. The `theme` supports `light` and `dark`, making it easier to embed charts in dashboards, reports, or internal tools with different visual styles.

The `/link` endpoint is useful when you want a shareable image URL, while `/download` is for retrieving the generated chart directly as a binary file.

## Usage

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