Graphs · Categorical

Bar Chart

Bar chart of frequencies for a categorical variable.

In the menus Graphs › Categorical › Bar Chart

Also searched as bar bar graph column chart frequency chart count chart

When to use it

You want to compare counts (or percentages) across the levels of a categorical variable.

When not to: The variable is continuous/numeric (use a histogram instead, which bins equal-width numeric ranges rather than plotting discrete named categories), or you need a formal statistical test of whether category frequencies differ from equal shares (a bar chart is descriptive only; use the chi-square goodness-of-fit test for that, which tests equal expected frequencies by default, or other expected proportions typed in its Expected shares box).

Step by step

  1. Open it from the menu

    Click Graphs in the menu bar; under Categorical choose Bar Chart.

  2. Fill in the form

    Choose the columns: Categories, Amount to add up (optional). The form lists only columns whose type fits each field.

  3. Check the options

    The options start at their defaults: Bar order, What each bar shows, Show 95% ranges. Change one only when your question needs it.

  4. Run the analysis

    Press Run analysis. The Result Card opens on its Results tab.

What to choose in the form

Fields of the Bar Chart form
Categories X requiredOne categorical or ordered categorical column. A category column. Each category gets one bar.
Amount to add up (optional) ValueOne numeric column. A number column, to total for each category. Leave empty to count the rows.
Bar order Sortauto: number codes in their own order, other categories largest first. Or choose descending, ascending or alphabetical. Not sure? Keep auto. It picks the order that usually reads best.
What each bar shows Summary of ValueWith an amount column: the sum, mean, median, minimum, maximum or count for each category. Not sure? Keep sum. It is the total for each category.
Show 95% ranges 95% CI error bars (mean)With mean chosen: adds a 95% confidence interval to each bar, showing how precisely each mean is known. Not sure? Keep it off unless your bars show means.

How to read the card

The Results tab starts with what to know first (rows left out, checks that did not pass), then the interpretation in words and the Key Results; charts and assumption checks follow further down. Learn More explains the method in plain words. Read a Result Card covers all four tabs.

A worked example

Counting penguins by species across the full dataset.

Result: Adelie: 152, Gentoo: 124, Chinstrap: 68 (sorted largest first, the default Sort of auto).

Adelie is the most common species in this sample by a clear margin, and the sorted, descending order makes that dominance immediately visible without needing to read the exact counts off each bar.

From the Statistics Library.

The code tabs

Code gives this analysis as Python, R and MATLAB code (and SAS where the tab offers it), reading the data the way KernelStats did. Export sends the card to a report or to slides. See The Code tab.

Understand the statistics

Ask Oobi

Type one of these into Ask Oobi beside your data:

  • How are patients distributed across the four blood-type categories?
  • Explain the bar chart in plain words.
  • What does summary table instead of raw data mean?

Last reviewed November 16, 2026.

Report an unclear step