Checking a Chart Against Known Values

A chart test can use a small known data set to check transformations, order, units, and how missing values appear.

Source
Anbloq
Language
English
Created
Updated
Chapters
2
Reading time
1 min
In this article2 chapters
  1. Choose a discriminating input
  2. Check data as well as appearance

Choose a discriminating input

Two categories with values 3 and 8 expose swapping their labels. One missing observation tests whether gaps appear as intended. See missing points.

Check data as well as appearance

Inspect the computed series and its chart labels. The rendered image alone may hide small differences or exact field changes. Tests that distinguish outcomes guide fixture selection.[1][2]

References

  1. Hadley Wickham, Tidy Data ↩
  2. Matplotlib Development Team, Plot Types ↩