Skip to content

Limit discrete categorical colors

badcolor and encodingmechanicalWilke 2019 p. 234Knaflic 2015 p. 97Few 2012 p. 246Few 2012 p. 247Few 2012 p. 75Munzner 2014 p. 226Munzner 2014 p. 228Munzner 2014 p. 229Ware 2021 p. 126

Do wall colors identify sections with a shared risk?

Illustrative survey of a flood wall at two-metre intervals. Heights and water levels use the same local datum.

“Use direct labeling instead of colors when you need to distinguish between more than about eight categorical items”

Claus O. Wilke, "Fundamentals of Data Visualization", p. 234.

Also covered in Knaflic 2015 (4 focus your audience's attention, p. 97), Few 2012 (10 COMPONENT-LEVEL GRAPH DESIGN, p. 246), Few 2012 (10 COMPONENT-LEVEL GRAPH DESIGN, p. 247), Few 2012 (5 VISUAL PERCEPTION AND GRAPHICAL COMMUNICATION, p. 75), Munzner 2014 (10 Map Color and Other Channels, p. 226), Munzner 2014 (10 Map Color and Other Channels, p. 228), Munzner 2014 (10 Map Color and Other Channels, p. 229), Ware 2021 (4 Color, p. 126).

CVD preview

Before

Each station has its own hue even though there are only two risk states.

Download before Python code

After

Neutral bars mark sections above forecast water and rust marks the breach risk.

Download after Python code

Values

At ten metres along the wall the crest stands below the forecast water level.