How to choose a chart

A chart is an answer to a question. Are these amounts bigger or smaller than each other? How did something change? What share does each part take? Do two things go together? Pick the chart that matches the question and the numbers explain themselves; pick the wrong one and even a simple table becomes hard to read. This guide walks through the charts of the six PictorX chart makers and when each one is the right choice.

A column chart with eight coloured columns, its values written above them
A column chart with eight coloured columns, its values written above them

To compare amounts: bars

Bars are the most reliable chart there is, because the eye compares lengths along a common baseline very precisely. Use columns when the categories have an order, such as months, and horizontal bars when the names are long or there are many of them. With several series, grouped bars compare each series item by item, and stacked bars show how the parts build a total. Always start the value axis at zero: a bar that starts halfway exaggerates the differences. The bar chart maker draws columns, bars, grouped, stacked and lollipop charts.

To show change: lines

A line joins values in order, so the eye follows the slope: rising, falling, levelling off. Lines suit continuous change over time, with many points, and several series on one chart as long as there are only a few of them. An area chart fills under a line for weight; a stacked area chart shows how parts of a total change together. A radar chart is something else: it compares profiles of a few items over five to ten measures. All four are in the line chart maker.

To show parts of a whole: pies, donuts and treemaps

A pie works when there are a few parts, two to six, that add up to a whole that matters, and when the point is roughly how big each part is. People judge angles and areas less precisely than lengths, so for close values or many parts a bar chart is clearer. A donut leaves room for the total in the middle. A treemap shows a whole divided into many rectangles and stays readable with twenty or thirty parts. Gauges and progress rings show one value against a maximum.

To find a relationship: scatter and bubble plots

A scatter plot places each case by two measurements and lets you see whether they go together, how strongly and whether some cases stand out. A trend line, fitted by least squares, summarises the direction. A bubble chart adds a third number as the bubble's area. Remember that a pattern is not proof of a cause: ice-cream sales and sunburn rise together because of the sun, not because of each other.

Levels, steps, structure and overlap

A pyramid shows a hierarchy from a wide base to a narrow top. A funnel shows how many are left after each step of a process, and where most drop out. A population pyramid puts two groups back to back by age. A heatmap colours a grid of numbers so patterns across two dimensions, like hour and weekday, jump out. A tree diagram shows who or what belongs under what. A Venn diagram, named after the logician John Venn, who described it in 1880, shows how two or three groups overlap.

Where charts come from

The Scottish engineer William Playfair published the first line and bar charts of economic data in his Commercial and Political Atlas of 1786, and a pie chart in his Statistical Breviary of 1801. In 1858 Florence Nightingale used polar area diagrams to show that more soldiers in the Crimean War died of preventable disease than of wounds, and so changed army hospitals. Treemaps were invented by Ben Shneiderman around 1990 to show the space taken by files on a disk; the squarified layout these apps use, which keeps the rectangles close to square, was published by Bruls, Huizing and van Wijk in 2000.

Charts that move

Animation helps when the story is change. Hans Rosling's talks made bubble charts famous: each country a bubble moving through the years, its size the population. Bar chart races, in which bars overtake each other year by year, became popular much later. In the PictorX chart makers Over time plays a table with a column per year, or a scatter plot with a Time column, and keeps the axes fixed so movement on screen is real change. Use Previous and Next to stop on a year, and Record to save the animation as a video. Grow and Draw are gentler: they build the chart up so an audience reads it in order.

Good habits for any chart

Give the chart a title that says what it shows and a subtitle with the unit and the source. Keep colours meaningful: one colour for one series, a highlight only where you want attention. Label values directly when there are few, use grid lines when there are many. Leave out what does not help: 3D effects, heavy borders and decorative backgrounds make charts harder to read. And show the data honestly: the same scale for things you compare, and a zero baseline for bars.

Frequently asked questions

Should I use a pie chart or a bar chart?

Use a pie for a few parts of a whole when the rough share is the point. Use bars to compare values precisely, when there are many items, or when the values do not add up to a whole.

When is a line chart better than a bar chart?

When the categories are points in a continuous sequence, usually time, and the trend matters more than each single value. Bars suit separate categories and a few time periods.

Who invented the bar chart?

William Playfair published bar charts and line charts of trade data in 1786, and the first pie chart in 1801. Earlier diagrams existed, but his are the first statistical charts in the modern sense.

Do the chart makers send my data anywhere?

No. The charts are drawn in your browser and the table is kept only in this browser's storage. You can save it as CSV or JSON at any time.

Ready to try it?

Open PictorX in your browser — no install, no credit card required to start.

Open the bar chart maker