HAHS.
Back to Catalog

Bar Chart

chart

Also known as: bar graph, column chart, bar plot

CompareShow ranking CategoricalNumerical Bar/Column

Description

The bar chart is one of the most fundamental and widely used visualization types. It maps a categorical variable to one axis and a quantitative variable to the other, drawing a rectangular bar for each category whose length encodes the numerical value. The result is an immediately readable comparison of magnitudes across groups.

Bar charts leverage the human visual system’s strength at comparing aligned lengths, making them one of the most perceptually accurate chart types. Research by Cleveland and McGill (1984) confirmed that position along a common scale is the most accurately decoded visual channel, which is exactly what bar charts exploit.

Horizontal bar charts are preferred when category labels are long or when there are many categories, since labels can be read naturally from left to right. Vertical bar charts (column charts) work well for time-ordered categories or when there are fewer groups.

Bar Chart — interactive example

Prompt Examples

Try these prompts with Claude, ChatGPT, or other AI tools:

“지역별 매출을 비교하는 수평 막대 차트를 만들어주세요. 높은 값에서 낮은 값 순으로 정렬해주세요.”

“Create a bar chart comparing Q1 sales by region, sorted highest to lowest, with a clean minimal style.”

“Make a grouped bar chart showing revenue by department for Q1 vs Q2. Use a colorblind-safe palette.”

When to Use

  • Comparing discrete quantities across a small to moderate number of categories (5-30)
  • Showing rankings, such as top-10 lists or survey responses
  • Presenting data where precise value comparison matters more than trend
  • Displaying results that audiences need to interpret quickly with minimal training

When NOT to Use

  • Continuous data distributions — use a histogram instead
  • Showing change over time with many data points — a line graph preserves temporal continuity better
  • Comparing parts of a whole — use a stacked bar chart or pie chart
  • Comparing two quantitative variables — use a scatterplot

Anatomy

  • Bars: Rectangular marks, one per category. Width is uniform; length encodes the value.
  • Category axis: The axis that lists discrete groups (x-axis for vertical bars, y-axis for horizontal bars).
  • Value axis: The quantitative axis with a numeric scale. Must start at zero for length comparisons to be honest.
  • Baseline: The zero line from which all bars originate.
  • Labels: Category names on the category axis, tick marks and numbers on the value axis.
  • Grid lines: Optional horizontal (or vertical) lines behind bars to aid value estimation.
  • Data labels: Optional value annotations placed at the end of or inside each bar.

Variations

  • Horizontal bar chart: Bars extend left to right; best for many categories or long labels.
  • Grouped (clustered) bar chart: Multiple bars per category placed side by side to compare sub-groups.
  • Diverging bar chart: Bars extend in both directions from a central baseline, useful for showing positive/negative deviations or Likert-scale responses.
  • Lollipop chart: Replaces the full bar with a line and dot, reducing ink for a cleaner look while preserving the same encoding.
  • Rounded bar chart: Bars with rounded ends, a stylistic variation common in infographics.

Code Reference

// Observable Plot - simple vertical bar chart
Plot.plot({
  marks: [
    Plot.barY(data, {
      x: "category",
      y: "value",
      fill: "steelblue",
      tip: true
    }),
    Plot.ruleY([0])
  ],
  x: { label: "Category" },
  y: { label: "Value" }
})