---
title: "Bar chart generator"
description: "Compare discrete categories with a bar chart. Processes data entirely locally for strict privacy with no server uploads."
---

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

# Bar chart generator

Compare values across discrete categories with a common baseline.

Maturity: beta

A bar chart for compare categories.

Data shape: Category and numeric value columns.

## Columns

- `category` (text, required)
- `value` (number, required)

## Sample data

| category | value |
| --- | --- |
| North | 42 |
| South | 31 |
| East | 25 |

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

## Visual Encoding & Comparative Anatomy

A bar chart visually maps categorical data to rectangular bars, where the length or height of each bar is proportional to the metric's magnitude. It relies on a strictly anchored baseline of zero to allow accurate comparisons of size and proportion across different discrete groups.

## FAQ



### Why must bar chart axes always start at zero?

Because human visual perception encodes bar magnitude by area and length. Truncating the baseline distorts the ratio between bars and misleads the reader.

### How many bars should I include in a single chart?

Between 5 and 15 bars is optimal for readability. For more than 20 items, consider a horizontal orientation or paginated display.

### When should I use a bar chart instead of a pie chart?

Bar charts are vastly superior when comparing more than 3-4 segments, when values are close in magnitude, or when precise ranking is required.

### Which exports are available?

Trendalyzer exports SVG and PNG artwork plus Excel-compatible data locally in your browser.
