Skip to main content
Bar charts compare categorical data using rectangular bars. Use vertical bars for categories and horizontal bars when category labels are long.

Vertical bar chart

Horizontal bar chart

Use when category labels are long or there are many categories:

Grouped bar chart

Compare multiple metrics per category:

Stacked bar chart

Show composition within categories:
Apply radius only to the top bar in the stack.

Mineral-coloured bars

For category-specific colouring using the mineral palette:

Styling guidelines

  • Use radius={[4, 4, 0, 0]} for rounded top corners on vertical bars
  • Use radius={[0, 4, 4, 0]} for rounded right corners on horizontal bars
  • Set vertical={false} on CartesianGrid for cleaner visuals
  • Use barSize={32} or similar to control bar width when bars are too wide or narrow
  • Include ChartLegend when showing multiple data series