
Dan Patiño
AI Strategy & Innovation at Coderhouse
Data
The right chart depends on the question you are answering, not on the data itself. If you want to compare categories, use a bar chart. If you want to show change over time, use a line chart. If you want to show how two numbers relate, use a scatter plot. If you want to show how values are spread out, use a histogram or box plot. And if you want to show parts of a whole, use a stacked bar or, only with very few slices, a pie chart. Most bad charts come from skipping that first step and picking a visual because it looks impressive.
This guide covers the main types of charts and graphs, what each one is good at, the mistakes that make them misleading, and a simple process you can use every time you build a report or dashboard.
Why choosing the right chart matters
A chart is an argument. Your audience, often a manager with a few seconds to spare, will read the shape before they read the numbers. A line that climbs, a bar that towers over the others, or a dot far from the cluster is what they will remember. When the chart type fits the question, that first impression is correct. When it does not, people walk away with the wrong conclusion even if every number is accurate.
Chart choice also affects how fast people can compare values. Humans judge positions along a shared axis and lengths much more accurately than angles, areas, or color intensity. That is why bar and line charts are the workhorses of business reporting, and why pie charts and bubble charts need extra care.
Start with the question: five common analytical goals
Before opening Excel, Tableau, or Power BI, write the question your chart should answer in one sentence. It will almost always fall into one of these goals, a framing also used by the Financial Times Visual Vocabulary:
Comparison: Which region sold the most? How do teams rank?
Change over time: How did weekly signups move this quarter?
Relationship: Do customers who use a feature more also spend more?
Distribution: How long do most support tickets take to close, and are there outliers?
Part-to-whole: What share of revenue comes from each product line?
Types of charts and graphs and when to use each
Bar chart (comparison)
Use horizontal or vertical bars to compare a value across categories. Sort the bars from largest to smallest unless the categories have a natural order, such as age groups or months. Always start the value axis at zero, because the length of the bar is what people compare. Horizontal bars work better when category names are long.
Line chart (change over time)
Use a line when the x-axis is time and you care about the trend. Lines can handle many data points and a few series at once, but more than four or five lines turns into spaghetti. Unlike bars, a line chart does not always need a zero baseline, as long as the axis is clearly labeled and the scale does not exaggerate small changes.
Scatter plot (relationship)
Plot one numeric variable against another to see whether they move together, form clusters, or contain outliers. Add a trend line if it helps, but remember that a visible pattern is not proof that one variable causes the other. If that distinction is fuzzy, read our guide on correlation vs causation.
Histogram and box plot (distribution)
A histogram groups values into bins and shows how often each range occurs, which reveals skew, multiple peaks, and long tails that an average hides. A box plot summarizes the median, the middle 50 percent of values, and outliers, and it is great for comparing distributions across several groups side by side.
Stacked bar, pie, and treemap (part-to-whole)
A 100 percent stacked bar is usually the clearest way to show shares, especially when you compare them across groups or over time. A pie or donut chart can work when there are two to four slices and the point is obvious, such as "about half of users are on mobile." Treemaps handle many categories with a hierarchy, but they make precise comparisons hard.
Tables and single-number cards
Sometimes the best chart is no chart. If your audience needs exact values to look things up, use a well-formatted table. If there is one number that matters, such as this month's conversion rate against target, show it large with a short comparison next to it.
Quick reference: question to chart
Your question | Best first choice | Alternatives |
|---|---|---|
Which category is biggest? | Sorted bar chart | Dot plot, table |
How did it change over time? | Line chart | Column chart for few periods |
Are two metrics related? | Scatter plot | Bubble chart for a third variable |
How are values spread out? | Histogram | Box plot, violin plot |
What share does each part have? | 100% stacked bar | Pie with 2 to 4 slices, treemap |
If you want a more exhaustive decision tree, From Data to Viz maps data types to chart options and lists common pitfalls for each one.
Common chart mistakes to avoid
Truncated bar axes: starting bars above zero makes small differences look huge.
3D effects: perspective distorts lengths and angles and adds nothing.
Too many colors: use one neutral color and one highlight color for the point you want people to see.
Dual axes without care: two y-axes let you make almost any two lines look correlated.
Pie charts with many slices: beyond four or five slices, nobody can compare angles accurately.
Missing context: a number without a target, a previous period, or a benchmark is hard to interpret.
A five-step process for every chart
Write the question and the one takeaway you want the audience to leave with.
Identify the goal: comparison, change over time, relationship, distribution, or part-to-whole.
Pick the simplest chart type that serves that goal.
Remove clutter: gridlines you do not need, legends you can replace with direct labels, decimals nobody uses.
Write a headline that states the finding, such as "Mobile signups overtook desktop in March," instead of a label like "Signups by device."
These same principles scale up to full reports. Once you are comfortable with single charts, our guide to dashboard design principles shows how to combine them into views people actually use.
Frequently asked questions
What is the most commonly used chart in business?
Bar and line charts. They cover comparison and change over time, which are the questions most business reports ask, and people read them accurately without explanation.
When should I use a pie chart?
Only when you show parts of one whole, there are very few slices, and the message is a rough share rather than a precise comparison. Otherwise, a bar chart is easier to read.
Do I need Tableau or Power BI to make good charts?
No. Good chart choices matter more than the tool. Excel, Google Sheets, Python, Tableau, and Power BI can all produce clear charts; BI tools simply make it easier to build interactive dashboards and share them.
Learn to turn data into clear decisions
If you want guided practice building charts and dashboards with feedback from working practitioners, Coderhouse offers live online courses with one class per week:
Data Analytics Course: 11 weeks for career switchers and data-driven professionals, covering SQL, Python, visualization, statistics, experimentation, and AI-assisted analysis.
AI Engineering Course: 8 weeks for experienced developers who want to build production-style AI applications with retrieval, agents, and evaluation.
I'm Dan Patiño, head of AI Strategy & Innovation at Coderhouse. My day-to-day work involves merging the tactical management of e-commerce (CRO, Email Marketing and SEO) with the development of disruptive solutions. I specialize in building internal AI-powered apps to automate tasks and boost innovation within the team. I firmly believe that technology is strategy's best ally. To dive deeper into my professional journey, I'll be waiting for you on my LinkedIn profile.