Keyboard Shortcuts N Next post
P Previous post
S Save / unsave
R Read aloud
T Toggle theme
/ Focus search
Esc Close panels
🔥
Ready to read...
charts Data Analytics Course intermediate Phase 7 — Visualization visualization

Choosing the Right Chart — Bar, Line, Scatter, or Histogram?

Reviewed & accurate
AI Summary

What You Will Learn

  • The five chart types that cover 95% of business analytics
  • Which chart answers which kind of question
  • When to use a table instead of a chart
  • The three charts to avoid (and why)

Why This Topic Matters

The wrong chart can make interesting data look boring and boring data look alarming. Most bad charts are not the result of bad tools — they are the result of picking the wrong chart type for the question. This lesson gives you a simple decision framework so the right chart is obvious every time.

The Five Charts You Actually Need

ChartBest forAvoid when
BarComparing categoriesCategories are ordered time (use line)
LineTrends over a continuous range (usually time)X-axis is categorical (use bar)
ScatterRelationship between two numeric variablesToo many points (use hexbin)
HistogramDistribution of one numeric variableThe variable is categorical (use bar of value_counts)
TableExact values, small datasets, mixed unitsRows > 20 (use a chart)

The Decision Tree

Ask yourself these questions in order:

  1. Is the data a single number or a small set of exact values? Use a table or a KPI card. Charts obscure exact numbers.
  2. Am I comparing categories? Use a bar chart.
  3. Am I showing how something changes over time or another continuous range? Use a line chart.
  4. Am I looking at the distribution of one numeric variable? Use a histogram.
  5. Am I checking if two numeric variables are related? Use a scatter plot.

If your answer does not fit any of these, you probably need to reformulate your question.

1. Bar Chart — The Workhorse

Best for comparing a metric across discrete categories. Each bar's length encodes one number.

When it works

  • "Revenue by city" — 4 cities, 4 bars.
  • "Order count by product category" — 5 categories, 5 bars.
  • "Customer count by signup month" — 12 months, 12 bars.

When it fails

  • More than ~15 categories — labels become unreadable. Aggregate or filter first.
  • Categories are ordered time — use a line, which connects the points.
  • Showing distribution of a continuous variable — use a histogram.

Horizontal vs vertical

Use horizontal bars when category names are long. Use vertical bars when there are many categories or when comparing time periods.

2. Line Chart — The Trend Tracker

Best for showing change over a continuous range. Points are connected, making trends obvious.

When it works

  • "Daily revenue for the last 30 days"
  • "Monthly active users over the past year"
  • "Stock price by minute" (with care — too many points becomes noise)

When it fails

  • X-axis is categorical (months as labels, not dates) — use a bar.
  • Few data points (3 or 4) — use a bar; the line implies continuity that does not exist.
  • Multiple series with very different scales — use a secondary axis or two separate charts.

3. Scatter Plot — The Relationship Finder

Best for showing whether two numeric variables are related. Each point is one observation.

When it works

  • "Marketing spend vs new signups" — one dot per campaign.
  • "Study time vs exam score" — one dot per student.
  • "Order value vs delivery time" — one dot per order.

When it fails

  • Too many points — they overlap into a blob. Use a hexbin or sample the data.
  • One variable is categorical — use a grouped bar instead.
  • You have three or more variables — consider a scatter matrix or small multiples.

Correlation ≠ causation

A scatter plot can show that two variables move together, but never proves that one causes the other. See lesson 11 — Correlation vs Causation.

4. Histogram — The Distribution Viewer

Best for seeing the shape of one numeric variable: where values cluster, whether the distribution is symmetric or skewed, whether outliers exist.

When it works

  • "Distribution of customer ages"
  • "Distribution of order amounts"
  • "Distribution of delivery times"

When it fails

  • The variable is categorical — use a bar chart of value_counts() instead.
  • Too few data points (< 30) — the histogram is noisy.
  • Too many bins — same problem. Start with √n bins.

5. Table — The Underrated Default

Charts are for patterns; tables are for exact values. Use a table when:

  • You need exact numbers, not patterns.
  • The dataset is small (< 20 rows).
  • Each row has multiple unrelated metrics (chart would be cluttered).
  • The audience needs to look up specific values.
When in doubt, start with a table. If the table reveals an obvious pattern, then convert it to a chart. If the table does not reveal a pattern, no chart will either — you need to transform or segment the data first.

The Three Charts to Avoid

1. Pie chart (almost always)

Humans are bad at comparing angles. A pie chart with 6 slices is unreadable; with 10 it is a joke. Use a bar chart instead — lengths are far easier to compare than angles. The only acceptable use of a pie is 2 slices with very different sizes, and even then a single bar would be clearer.

2. 3D charts (always)

3D effects distort perception. A "tall" 3D bar in the back looks smaller than a "short" 3D bar in the front. Never use 3D for data — it actively misleads.

3. Dual-axis line charts (usually)

Two lines on the same chart with two different y-axes look impressive but are easy to misread. Viewers cannot tell which axis goes with which line. Use two separate charts stacked vertically instead.

Real Example — One Dataset, Four Charts

Suppose you have monthly revenue and order count for 12 months. Each chart answers a different question:

  • Bar of revenue by month: Which month had the highest revenue?
  • Line of revenue over time: What is the trend? Growing, declining, seasonal?
  • Scatter of orders vs revenue: Do months with more orders also have more revenue? (Should be linear if AOV is stable.)
  • Histogram of monthly revenue: What is the typical monthly revenue, and are there outlier months?

Same data, four different questions, four different charts. There is no "right" chart for the data — only the right chart for the question.

Common Mistakes

  1. Defaulting to a pie chart. Replace every pie with a bar chart unless you have a strong reason.
  2. Using a line chart for categorical data. Lines imply continuity. Months as labels are categorical.
  3. Too many series on one chart. More than 3 lines and nobody can read it. Split into multiple charts.
  4. Forgetting to sort categorical bars. Sort by value (largest to smallest) unless the categories have a natural order.
  5. Using a chart when a table would be clearer. If the audience needs exact numbers, use a table.
  6. Truncated y-axes on bar charts. Starting the y-axis at a non-zero value exaggerates differences. We cover this in lesson 35 — Misleading Visualizations.

Practical Exercise (10 minutes)

For each of these questions, write down the best chart type:

  1. How does revenue change across the 12 months of 2026?
  2. What is the distribution of customer ages?
  3. Which 5 cities generate the most revenue?
  4. Is there a relationship between marketing spend and signups?
  5. What were the exact revenue numbers for the last 3 months?
  6. What share of orders came from each product category?

Answers: 1. Line. 2. Histogram. 3. Bar (sorted descending). 4. Scatter. 5. Table. 6. Bar (not pie, even though it's a share).

Mini Challenge

Open any dashboard or report you can find — a news article, a company report, a fitness app summary. For each chart, ask: "What question does this answer, and is this chart type the best choice?" You will find at least one chart that should be a different type. Identify it and explain why.

Key Takeaways

  • Bar = compare categories. Line = trend over time. Scatter = relationship. Histogram = distribution. Table = exact values.
  • The chart follows the question, not the data. Same data, different question, different chart.
  • Always sort categorical bars by value unless there is a natural order.
  • Avoid pie charts, 3D charts, and dual-axis lines.
  • When in doubt, start with a table. Convert to a chart only if the table reveals a pattern worth visualizing.
Course continuity
Previously learned: Phase 6 (lessons 29–32) covered the statistics you will visualize.
Today: You learned to match the question to the chart type.
Next: Lesson 34 covers how to combine multiple charts into a dashboard — without making it overwhelming.

FAQ

What about heatmaps, treemaps, and funnel charts?

Useful in specific cases. Heatmap for a matrix of values (e.g., sales by city × month). Treemap for hierarchical part-to-whole with many categories. Funnel for sequential conversion stages. Each is a specialized tool — learn the basics first, then add these when the basic charts do not fit.

Should I use a stacked bar instead of a grouped bar?

Stacked bars are good for showing parts of a whole when the total matters most. Grouped bars are better when comparing individual segments across categories. If you cannot decide, default to grouped — it is easier to read.

Test Your Knowledge
How did you find this?

Comments

Join the discussion! Sign in with your Google or Blogger account, or comment as Anonymous - no account needed. For quick questions, also reach me on Telegram @cytestch.

Comments