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

# Bar Chart Generator

Generate bar chart images from a title and data array, with optional colors, theme, and layout options. Get a pre-signed URL or binary download.

## Endpoints

| Method | Path | Description | Atoms |
| --- | --- | --- | --- |
| POST | `/link` | What it does Generates a bar chart and returns a pre-signed URL for the generated chart image. The… | 10 |
| POST | `/download` | What it does Generates a bar chart image from the chart configuration you send in the request body,… | 10 |

## About

## What it does
Bar Chart Generator creates a bar chart image from your data and returns it as either a pre-signed image URL or a binary download, depending on the endpoint you use.

Send a `title` and a `data` array of bar objects. Each bar can include a `label`, `value`, and optional `color` as a 6-character hex value without `#`. You can also set `theme` to `light` or `dark`, and fine-tune the chart with `options` such as `width`, `height`, axis font sizes and colors, spacing, bar width, background padding and color, title styling, and canvas color.

Use it when you need charts for dashboards, reports, email exports, admin panels, or generated documents. The same input structure works whether you want a shareable chart link from `/link` or a direct image file from `/download`.

Bar Chart Generator is a fit for applications that need consistent, programmatic chart rendering without building chart logic in the client.

## Usage

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