---
title: Generate Bar Graph API
slug: generate-bar-graph
url: https://apyhub.com/apyhub/service/generate-bar-graph
provider: ApyHub
tags: [bar-chart, chart-generation, data-visualization, image-generation, reporting]
auth: api_key
---

# Generate Bar Graph API

What it does Bar Chart Generator creates bar chart images and shareable chart links from a title and a list of bar values. Send a title, data array, and optional theme or options; get back either a binary image from /download or a pre-signed image URL from /link. Each bar item can include a label,…

## Endpoints

| Method | Path | Description | Atoms |
| --- | --- | --- | --- |
| POST | `/download` | What it does Generates a bar chart image from the chart configuration in the request body and retur… | 60 |
| POST | `/link` | What it does Generates a bar chart link from the chart configuration in the request body and return… | 60 |

## About

## What it does
Bar Chart Generator creates bar chart images and shareable chart links from a title and a list of bar values. Send a `title`, `data` array, and optional `theme` or `options`; get back either a binary image from `/download` or a pre-signed image URL from `/link`.

Each bar item can include a `label`, `value`, and optional `color` hex code. The `options` object lets you control the chart size, spacing, bar width, axis font size and color, background padding and color, title styling, and canvas color. Use `theme` to switch between `light` and `dark` output.

This is a fit when you need charts for dashboards, reports, internal admin pages, or generated documents without rendering them in the browser. For example, you can turn quarterly sales by region, usage totals, or category counts into a consistent bar chart image for email, PDF, or a web app preview.

Bar Chart Generator keeps the payload simple and the output predictable: a chart image file or a URL pointing to the generated image.

## Usage

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