# Bar Charts: Comparing Categories

A bar chart draws one bar for each category with its height as the amount, so ax.bar compares groups such as flavors, sorting the table first puts the biggest bar first, ax.barh lays long names out sideways, and ax.bar_label writes each bar's number on it.

![Cheat sheet: Bar Charts: Comparing Categories](https://fsdtrainingmedia.blob.core.windows.net/public/images/2026/11/f212fdb7537740fb995afc38c4e7587f.webp)

- Category: Data Analysis
- Level: Apprentice
- Tags: Axes, Bar Chart, bar_label(), python
- Author: Gregor Dzierzon
- Updated: November 23, 2026

Source: https://www.ask-codey.com/cheat-sheets/data-bar-charts-cheat-sheet
