Problem
When a chart represents values with color, a poorly chosen scale can hide differences or create apparent patterns that are not in the data.
Solution
Use a sequential scale for values running from low to high. Make the lightness change steadily so the order is easy to read.
Use a diverging scale when there is a meaningful center, such as zero change or a target. Place the neutral color at that actual reference value. For values that wrap around, such as angles, use a scale whose ends meet.
Label the range and any limits applied to extreme values. Avoid rainbow scales that introduce uneven visual steps. Test the colors in supported themes and provide exact values another way.
Use when
Color represents a quantity or ordered value rather than a category name.
Don’t use when
The categories are unordered, where a ramp implies a ranking that does not exist. And avoid encoding anything precise in colour at all: people read position and length far more accurately, so a ramp is for pattern, not for measurement.
Trade-offs
Color supports approximate comparison, not precise measurement. Limiting the range can reveal common values while hiding how extreme the outliers are. Separate charts need matching scales when they are meant to be compared.
Checklist
- Is this quantity sequential, diverging or cyclical, and does the ramp match?
- If diverging, does the midpoint sit at a real zero rather than at the mean?
- Does the ramp vary monotonically in lightness?
- Is it perceptually uniform, or does it invent boundaries?
- Is the scale clamped, and does one outlier otherwise consume it?
- Is the legend present with real values, not just a gradient bar?
- Does the ramp survive greyscale and the common colour vision deficiencies?
- Does it have a variant tuned for the dark theme?
- Do neighbouring panels share a scale where they are meant to be compared?
- Is there a number available for anyone who needs precision?
Compare
ColorBrewer remains the reference set, dividing schemes into sequential, diverging and qualitative and flagging which are colourblind-safe, print-friendly and photocopy-safe, which is the taxonomy every later tool borrowed. Viridis and its family were designed explicitly for perceptual uniformity and greyscale survival, and have become the default in scientific plotting for that reason. Grafana offers scheme and opacity modes plus explicit start and end clamps on its heatmap, which is more control than most dashboards use and exactly the control that matters. Older SCADA and BI tools still default to rainbow, which is the clearest available demonstration of why this entry exists.
Related
Heatmap relies on a readable value scale. Geo map adds the challenge of unequal region sizes. Calendar heatmap needs a useful range for daily values.
Categorical series palette handles unordered categories. Cohort grid uses color to compare values across groups.