New Tool Radar

AI Design Workflows

How to Check That a Chart Type Fits the Data

Check that a chart type fits the data it shows, because a pie chart of a trend and a line chart of parts of a whole both mislead.

Schematic with three steps: name what the data shows, pick the matching chart type, check the chart answers the question.

A chart’s job is to answer one question: how much, how has it changed, or how does it break down. The wrong chart type answers a different question than the one the reader asked. This check names the question first, then tests whether the chart type fits it.

Why this needs its own check

WebAIM’s contrast guide states that WCAG 1.4.11 Non-text Contrast requires the parts of a graphic required to understand the content to contrast at least 3 to 1 against adjacent colours. A chart that uses the right type but colours its parts so faintly that they cannot be told apart fails that rule as well as failing its reader.

What you need before you start

  • The data behind the chart
  • The question the chart must answer
  • The chart as it will be published

Step 1 – Name what the data shows

Write one sentence saying what the data is: a trend over time, parts of a whole, a comparison between groups, or a distribution. If the data shows two of these at once, it may need two charts.

Step 2 – Pick the matching chart type

Match the type to the question: a line for a trend over time, a bar for a comparison, a pie only for a few parts of a whole. A pie chart of twelve slices, or a line chart of unrelated categories, fails.

Step 3 – Check the chart answers the question

Ask a colleague the chart’s question and see whether they can answer it from the chart alone in under a minute. If they cannot, the type is wrong even when the chart looks tidy.

Worked example

Practice check: a fictional Alder and Ash Architects project chart

The example below is fictional. Alder and Ash Architects is an invented business used only as a practice case. No real customer, page, or product is shown. Treat it as a practice case, not as evidence about any real business.

Part What it should be As shown Result
Question named One question written down How have project hours changed over a year Pass
Chart type picked Line for a trend over time Line chart Pass
Parts of a whole shown Pie only for a few parts Pie chart with twelve slices Fail – twelve slices
Reader answers in a minute Answer found quickly Answer found quickly Pass

Only 3 of the 4 checks pass: the named question, the line chart, and the quick answer. The one failure is the pie chart with twelve slices, which should be a bar chart.

What to do when something is wrong

Replace the twelve-slice pie with a horizontal bar chart ordered largest to smallest, and keep the pie only if the data is cut to three or four parts. Re-test with a colleague after the change.

Expected result. We checked the WebAIM contrast guide listed in Sources for the non-text contrast rule on graphics. We did not test a live Alder and Ash Architects chart. UNTESTED: no chart was tested with a real reader; the practice table shows the expected result pattern for a report with one wrong chart type.

Limits

  • This check covers chart type choice only. It does not cover axis labels, legends, or colour scales, which have their own checks.

Sources

See all