We're sorry but this app doesn't work properly without JavaScript enabled. Please enable it to continue.

This lesson's interactive features are locked, please to keep using them

Bar and Column Charts

Let's dig into some different types of charts! Starting of course, with Bar Charts.

A Bar Chart displays data using horizontal bars. Each bar represents a category, and the length of the bar represents its value. Here's an example from a different data set:

What Are Bar Charts Good For?

  • Comparing total values between categories (e.g., Sales by Region, Revenue by Product Category)
  • Highlighting differences across groups
  • Showing rankings or proportions

Bar and column charts are great when you have a category (like region or product category) on one axis and a numeric value (like sale_quantity) on the other axis.

Vertical vs. Horizontal

A column chart is just a bar chart with vertical bars instead of horizontal ones... hopefully that's obvious.

I prefer bar charts (horizontal) when I have long category names or many items to compare. I prefer column charts (vertical) when I have fewer categories and want to emphasize height rather than length.

Assignment

Save the project and, from the course directory, submit the CLI tests.