Skip to main content
Bar charts display data as horizontal bars. They support three variants: grouped, stacked and 100% stacked.

When to use

  • Comparing categories - Show differences between discrete groups
  • Ranking data - Display ordered comparisons
  • Long category names - Horizontal orientation accommodates longer labels
  • Large number of categories - Easier to read than vertical columns
  • Part-to-whole comparisons - Use stacked variants to show composition

Grouped bars

Display multiple series side-by-side for easy comparison.

Single series

Sorted bars

Sort bars by value in descending order (single-series only):

Stacked bars

Stack multiple series end-to-end to show both individual values and cumulative totals.

Stack totals

Show the total value at the end of each stacked bar:

100 percent stacked bars

Normalise each bar to 100% to show relative proportions rather than absolute values.

Show percentages

Display percentage values instead of absolute values:

Options

options.sortBars
boolean
default:"false"
Sort bars in descending order by value. Only applies to single-series grouped bar charts (type: 'bar').