Chart choice
20 posts tagged Chart choice, newest first.
When to use an animated chart instead of small multiples
Animation shows movement over many years; small multiples let readers compare them. World Bank data drawn three ways shows what each view keeps and loses.
When to use a bar chart race
A bar chart race shows the order in which entries overtook each other. Census data shows what it hides, and when a bump chart or line chart works better.
How to make a slope chart in JavaScript
A slope chart compares two moments with one line per item. This post uses fatal accidents at 11 airlines and covers how to choose the two endpoints.
What to use instead of a dual-axis chart
Two y axes let the author choose how far apart two trends look. This post draws the same road-death data as separate panels and as one indexed chart.
How to chart a temperature anomaly
How to chart each year's temperature against a baseline, and when to use bars or a line.
Stacked bar chart vs grouped bar chart
Stacked bars show the total, and grouped bars let you compare the parts. This post also covers how to order the segments of a stack.
How to choose a histogram bin size
The same 51 state incomes drawn with three bin widths look like three different distributions. Two rules of thumb help you pick a width.
Choropleth vs tile map for US state data
A geographic map gives Alaska and Texas far more room than Rhode Island and DC. A tile map gives each state one square. The same unemployment data, both ways.
How to build a KPI dashboard with sparklines
A KPI tile is a number, a comparison and a small line. This post builds a row of them and covers what to label once the sparkline has no axes.
How to use small multiples
When a line chart has too many series, give each one its own panel. Then decide whether the panels share a y scale.
When to use a table instead of a chart
Tables win when readers need exact values or mixed units. Inline bars and cell shading add a visual scan without removing the numbers.
How to annotate a line chart
Every annotation should answer a question the reader would otherwise have. Three types cover most line charts, and three per chart is a good limit.
How to make a beeswarm plot
A beeswarm plot draws one dot per data point, so you can see which states fell and by how much. This post builds one and then splits it into groups.
How to read and build a Sankey diagram
A Sankey diagram shows where a total goes. This post reads one of US energy flows, then builds it from a list of flows.
Lollipop chart vs bar chart
Lollipop charts suit long ranked lists better than bars do, but the stems still have to start at zero.
Pie chart vs bar chart vs waffle chart
A pie works for one dominant share, bars for close values, and a waffle for one percentage you want counted. Examples use US debt and federal spending.
When bar charts must start at zero
A bar's length carries its value, so cutting the axis distorts the comparison. A line's position carries it, so a line axis can start closer to the data.
How to chart a range of values
An average hides how far values spread. A range plot shows each month's low and high instead, and the post says when error bars or a histogram fit better.
How to make a heatmap in JavaScript
A heatmap colors each cell of a grid by a number. This post builds two, one with a sequential color scale and one with a diverging scale.
When to use a log scale on a scatter plot
When values span orders of magnitude, a linear axis crowds most points into one corner. A log scale spreads them out, but readers misread it more easily.