---
title: "Horizontal stacked bar chart generator"
description: "Compare totals and part-to-whole composition across categories with long labels. All data is processed locally with no server uploads."
---

> HTML: https://trendalyzer.app/chart/stacked-bar-horizontal/
> Index: https://trendalyzer.app/llms.txt

# Horizontal stacked bar chart generator

Compare totals across categories while showing how each component contributes to the total.

Maturity: beta

A stacked-bar-horizontal chart for comparison.

Data shape: Category plus one numeric column per component.

## Columns

- `category` (text, required)
- `Product` (number, required)
- `Services` (number, required)
- `Other` (number, required)

## Sample data

| category | Product | Services | Other |
| --- | --- | --- | --- |
| North | 30 | 18 | 8 |
| South | 24 | 22 | 5 |
| East | 34 | 14 | 7 |

Exports: SVG, PNG, and Excel data (data). PowerPoint export is currently unavailable pending dependency review.

## Part-to-Whole Composition Mechanics

A horizontal stacked bar chart maps total category lengths horizontally, subdividing each bar into segmented colored rectangles to reveal component contributions. It combines the label-readability benefits of horizontal bars with the part-to-whole decomposition of stacked bars, making it ideal for categorical data with lengthy names.

## FAQ



### When is horizontal stacked bar best used?

When comparing multi-part composition across categories with long textual labels.
