Bases de donnéesConnectez n'importe quelle base de données et analysez vos données instantanément·FichiersImportez des fichiers CSV ou Excel et explorez-les avec l'IA·ChatPosez vos questions en langage naturel — dialoguez avec vos données·Tableaux de bordCréez des dashboards interactifs à partir de vos requêtes en quelques secondes·IALaissez l'IA écrire le SQL à votre place·GraphiquesVisualisez les tendances avec des graphiques générés automatiquement·No-codeAucune connaissance SQL requise — demandez simplement en français·PartagePartagez vos dashboards en direct avec votre équipe en un clic·InsightsDétectez automatiquement les tendances et anomalies cachées dans vos données·ExportsTéléchargez vos résultats en CSV, Excel ou PNG instantanément·Bases de donnéesConnectez n'importe quelle base de données et analysez vos données instantanément·FichiersImportez des fichiers CSV ou Excel et explorez-les avec l'IA·ChatPosez vos questions en langage naturel — dialoguez avec vos données·Tableaux de bordCréez des dashboards interactifs à partir de vos requêtes en quelques secondes·IALaissez l'IA écrire le SQL à votre place·GraphiquesVisualisez les tendances avec des graphiques générés automatiquement·No-codeAucune connaissance SQL requise — demandez simplement en français·PartagePartagez vos dashboards en direct avec votre équipe en un clic·InsightsDétectez automatiquement les tendances et anomalies cachées dans vos données·ExportsTéléchargez vos résultats en CSV, Excel ou PNG instantanément·
AnalityQa
FonctionnalitésPar métierTarifsOutilsGuidesBlog
ConnexionCommencer
Data Visualization

Chart Types: When to Use Which (and When You're Wasting a Pie Chart)

Eight chart types covered against the question they actually answer — plus the comparison pairs people Google constantly (bar vs histogram, scatter vs line).

Alex·May 1, 2026·12 min read
A laptop screen with multiple chart types side by side on a dashboard

Most chart-type guides give you the catalogue with no opinion. This one is opinionated: every chart below is paired with the specific question it answers and the moment to skip it.

The rule that matters more than any chart type: pick the chart that answers the question, then strip everything that isn't the answer. A pie chart with eight slices and a 3D effect is not data visualisation; it's decoration. A line chart with the right two series and clean labels can change a meeting.

The eight chart types worth knowing

Listed in roughly the order you'll reach for them. Each entry below has its own section further down.

  • Bar chart — comparing categories
  • Line chart — change over time
  • Scatter plot — relationship between two variables
  • Histogram — distribution of one variable
  • Pie chart — parts of a whole (sparingly)
  • Stacked bar chart — composition over categories
  • Box plot — distribution summary across groups
  • Violin plot — distribution shape across groups

Bar chart — for comparing categories

The default chart for 'how does X compare across categories'. Revenue by region, sign-ups by channel, units by product. Each bar is a category, the height (or length, if horizontal) is the value.

Use a horizontal bar chart when you have many categories or long category names — vertical labels become illegible past about ten bars. Sort by value, not alphabetically, unless there's a meaningful order (like months or grades). The eye reads sorted bars dramatically faster.

Line chart — for change over time

Time on the X axis, your metric on the Y axis, dots connected with a line. The line implies continuity — that the value moves smoothly between measurement points — so reach for line charts when that's a fair assumption (revenue, active users, temperature) and avoid them when it isn't (winners of an election by year — those are discrete events, use bars).

Keep the number of lines small. Three or four is a comfortable maximum. Past that, the chart becomes spaghetti and nobody can read which line is which. If you genuinely have ten time series, use small multiples (one mini-chart per series, laid out in a grid) instead of cramming them onto one panel.

Scatter plot — for the relationship between two numbers

Each dot is one observation, plotted by its X and Y values. A scatter plot tells you whether two numeric variables move together, against each other, or unrelated.

Reach for it when you suspect a relationship and want to see it. Spend per customer vs lifetime value. Page load time vs conversion. Hours of sleep vs energy level. The shape of the cloud is the answer: tight upward = positive correlation, scattered cloud = no relationship, downward = inverse.

A common upgrade: add a trend line (linear or LOESS) so the eye doesn't have to do the regression itself. Just don't extrapolate beyond the data you actually have — the trend line is descriptive, not predictive, unless you've explicitly fit a model.

If your scatter plot has 50,000+ dots, use transparency (alpha < 0.3) or hexbin density instead. Otherwise the dots overlap and you can't read the density of the cloud — you just see a blob.

Histogram vs bar chart — what most people get wrong

These look similar — both have rectangles — but they answer fundamentally different questions. Mixing them up is the most common chart-mistake on the internet.

HistogramBar chart
Shows the distribution of one numeric variableShows comparison across categories
X axis is continuous (binned numbers)X axis is discrete (categories)
Bars touch — they represent adjacent rangesBars have space between them — categories are separate
Bar widths can be unequal (variable bin sizes)Bar widths are equal
Bar order is fixed (low-to-high values)Bar order can be sorted however you want
Use when answering: 'how is this number distributed?'Use when answering: 'how does this compare across groups?'

Pie chart — used way too often, occasionally correct

Pie charts work for one specific job: showing parts of a whole when there are very few slices (two or three) and the difference between them is dramatic. 70% / 30% as a pie is fine. 18% / 16% / 15% / 14% / 12% / 11% / 14% as a pie is a war crime.

The human eye is bad at comparing angles and curved areas. It's much better at comparing the lengths of straight bars. So 95% of pie charts should be horizontal bar charts. The rare exception is when 'this big slice and that small slice' is the entire story you're telling and you want the visual punch.

Avoid 3D pie charts, exploded slices, and any decoration. They distort the proportions. If you find yourself reaching for them, reach for a different chart type instead.

Stacked bar chart — composition across categories

A bar chart where each bar is sub-divided into segments. Useful when you want to show both the total per category AND the composition. Revenue by month, broken down by product line. Sign-ups by week, broken down by channel.

Keep the number of stacked segments small (3-5 max) and order them consistently across bars. The biggest pitfall: stacked bars make it hard to compare individual segments across categories — you can compare the segment at the bottom (it shares a baseline) but not the ones above it (they float).

When comparing segments matters more than seeing totals, switch to a grouped bar chart (segments side-by-side instead of stacked) or 100% stacked bars (every bar is normalised to 100%, so you're comparing share, not absolute).

Box plot — distribution summary

Box plots show the spread of a numeric variable across categories: median, quartiles, outliers. The box covers the middle 50% of the data, the line in the middle is the median, the whiskers extend to the typical range, dots beyond the whiskers are outliers.

Use them when you want to compare distributions across multiple groups — salary by department, response time by server, test scores by school. They condense a lot of information into a small space, which is also the downside: people who haven't seen one before need a quick explanation.

Violin plot — when you need the actual shape

Violin plots are box plots' richer cousin. Same job — comparing distributions across groups — but instead of a box, each group gets a smoothed shape that shows the actual probability density. A violin plot reveals when a distribution is bimodal (two humps), skewed, or unusually peaked — features a box plot hides.

Use them when the shape of the distribution matters and your audience can read them. If you're presenting to executives who've never seen one, a box plot is more readable. If you're a data team comparing a model's predictions across cohorts, the violin plot's extra detail is worth the cognitive load.

Bar vs line — when do you switch?

Both can show comparison or trend; the difference is what kind of variable is on the X axis.

Use a bar chart whenUse a line chart when
Categories on X (discrete: regions, products, names)Time on X (continuous: dates, weeks, hours)
You want to compare absolute values across categoriesYou want to show how a value changes
Order doesn't imply progression (alphabetical, by size)Order implies progression (chronological)
Few enough categories that bars don't get cramped (< 20)Enough time points that the line shows shape (> 5)

What to skip — chart types that almost never work

**3D anything.** Three-dimensional bar charts and pies distort the proportions. Almost no use case justifies them.

**Radar / spider charts.** Look impressive, almost impossible to read accurately. The closed shape implies a meaningful 'area' that often isn't.

**Donut charts with annotations.** A pie with a hole. The hole adds nothing; the labels around it usually do all the work, meaning the chart itself is decoration.

**Word clouds.** Show neither frequency clearly nor relationship — they show big-text-vs-small-text and that's it. If you need to convey 'these terms came up most', a sorted bar chart does it in less space and more accurately.

None of these are illegal. They're just usually the wrong tool, and if you reach for them, ask yourself what specific question they're answering that a simpler chart wouldn't answer better.

The dashboard view — pulling it together

A dashboard rarely needs more than 3-5 chart types. KPI tiles for the headline numbers. A line chart or two for trend. One bar chart for breakdown. Maybe a table for the long tail.

The biggest mistake we see is dashboards that try to use every chart type at once — like a designer's sample file. The user's eye doesn't know where to land. Pick the question the dashboard answers, pick the 4-5 visuals that answer it, drop the rest.

We built AnalityQa partly because picking the right chart type is its own skill, separate from the data work. You ask the question; we pick the chart that fits. You can override it (every chart type is one click away in the editor) but the default usually lands close to the right answer.

See it in AnalityQa

You'd type

"Show me weekly sign-ups by channel for the last 12 weeks"

What you'd get back

12 weeks of weekly sign-ups across 4 channels. Picked a stacked area chart — the question is 'how does the mix evolve' more than 'what's the total per week'. Total sign-ups grew 28%; organic share grew from 18% to 31%; paid social fell from 41% to 28%.

Output: Stacked area chart, 4 series, weekly granularity, with annotations on the two highest weeks

What this won't do

This isn't a comprehensive visualisation theory text. It skips spatial maps, network/graph diagrams, Sankey flows, and most statistical-detail charts (Q-Q plots, ridgelines, etc.) — they have legitimate uses but you'll only need them when you genuinely know you do. For a deeper, opinionated reference, Storytelling with Data and Edward Tufte's Visual Display of Quantitative Information are the canonical books and worth the money.

Note from Alex

The single most common 'wait, what?' moment I see when people share dashboards is reaching for the wrong chart type. A pie chart with twelve slices because the dataset has twelve categories. A line chart connecting three points labeled Q1, Q2, Q3 — three points isn't a trend, it's three numbers; use bars.

The reflex I'm trying to build into the product is: pick the question first, the chart second. Most of this page is just the version of that I'd give a friend asking which chart to use.

— Alex, Co-founder, AnalityQa

Frequently asked

Is a scatter plot the same as a scatter graph?+

Yes — scatter plot, scatter graph, and scatter chart all mean the same thing: dots positioned by their X and Y values. 'Scatter plot' is the more common term in statistics; 'scatter chart' shows up more in spreadsheet tools (Excel calls it a scatter chart). They're interchangeable.

When should I use a bar chart vs a histogram?+

Use a histogram when you're showing how one numeric variable is distributed (test scores, response times, ages). Use a bar chart when you're comparing values across distinct categories (sales by region, votes by candidate). The visual rule of thumb: if the bars touch, it's a histogram (representing adjacent ranges); if they have spaces between them, it's a bar chart (representing separate categories).

What's the maximum number of slices for a pie chart?+

Three. Past that, switch to a horizontal bar chart sorted by value. Pies become unreadable above three because the human eye is bad at comparing similar angles and curved areas. The exception is when your story is 'one slice dominates everything else' and you want the visual punch — then 5-6 can work, but you're stretching it.

Are violin plots better than box plots?+

Better at showing the shape of the distribution, worse at being read by people who've never seen one. Box plots are the safer default for general audiences. Violin plots win when you need to see bimodality (two peaks), skew, or unusual shapes — and your audience knows what they're looking at.

Does AnalityQa pick chart types automatically?+

Yes — when you ask a question, we pick the chart type that fits the answer. A 'compare X across categories' question gets a bar chart; a 'how did X change over time' question gets a line chart; a 'distribution of X' question gets a histogram. Every chart is editable in one click if you want a different type.

What's the best chart type for showing percentages?+

It depends on what the percentages represent. Parts of one whole with 2-3 categories: a pie or a 100% stacked bar. Comparing percentages across groups: a regular bar chart, with the Y axis labeled as a percentage. Change of a single percentage over time: a line chart. The label 'percentage' isn't itself the right cue — what's the question you're answering?

Skip the chart-type guesswork

Ask the question. We pick the chart. Override it if you disagree. Either way, faster than building it from scratch.

Try AnalityQa free

100 credits free · No credit card · Cancel anytime

On this page

  • The eight chart types worth knowing
  • Bar chart — for comparing categories
  • Line chart — for change over time
  • Scatter plot — for the relationship between two numbers
  • Histogram vs bar chart — what most people get wrong
  • Pie chart — used way too often, occasionally correct
  • Stacked bar chart — composition across categories
  • Box plot — distribution summary
  • Violin plot — when you need the actual shape
  • Bar vs line — when do you switch?
  • What to skip — chart types that almost never work
  • The dashboard view — pulling it together
  • Frequently asked

Keep reading

  • Excel Dashboards That Don't Break When You Open Them on Monday
    Real steps to build one from a CSV — pivot tables, slicers, the three formulas worth memorizing, and the moment Excel stops being the right tool.
AnalityQa

Votre data analyst IA — pour tous ceux qui ont des données et des questions.

Produit

  • Fonctionnalités
  • Tarifs
  • Blog
  • Outils gratuits

Société

  • À propos
  • Contact

Légal

  • Confidentialité
  • CGU

© 2026 AnalityQa AI. Tous droits réservés.

Tous les systèmes opérationnels