Guidelines
Suggest edit

Use a categorical hue scale for categories without intrinsic order

For comparing unordered groups, use color hues on categorical data to improve fidelity and mitigate false ordering for readers distinguishing categories.

  • purpose:refine
  • basis:heuristic
  • data:categorical
  • quality:fidelity
  • lever:encoding
  • channel:color-hue:use

advice

Use hues for unordered categories

Use distinct hues when color encodes categories that do not have an intrinsic order. For example, assign different hues to groups such as places, ethnicities, genders, or industries instead of using a light-to-dark gradient.

reason

Why unordered categories need hues

Categorical hues separate identities without implying rank. Readers can tell categories apart while understanding that no color means more or less than another.

Mechanism: Different hues signal distinct groups, not magnitude, so readers do not infer a low-to-high progression where none exists.

Evidence: The article recommends hues for categories without intrinsic order and states that categorical colors communicate that no category is worth more or less than the others (Muth, 2021).

context

Use when the categories have no rank

  • User Goal: Distinguish groups from one another.
  • Task: Compare categories as different identities, not as higher or lower values.
  • Data: The color-encoded field is categorical and unordered.
  • Chart Setting: Color is being used to encode that categorical field.
  • Audience: Readers who need to tell categories apart without inferring magnitude.
  • Success Criterion: The chart clearly separates groups without suggesting an order.

exceptions

Do not use when the values are ordered

Break it when: The color-encoded values have an intrinsic order or a meaningful middle value. Why: Hues communicate difference without more-or-less direction.

costs

Tradeoffs of categorical hues

Sacrifice: The palette does not communicate low-to-high magnitude. Risk: Applying hues to ordered values removes the sense of progression. Mitigation: Switch to a sequential or diverging gradient when the data needs ordered reading.

mistakes

Common ordering mistake

Mistake: Use unrelated hues for values such as income, temperature, or age. Why it fails: Readers cannot read the colors as a progression from lower to higher values.

check

Check whether the field is truly unordered

Failure Sign: The legend labels can be arranged naturally from lower to higher or from one side of a midpoint to the other. Quick Check: Ask whether one category should be seen as more or less than another; if yes, do not use categorical hues. Stronger Test: If readers need the colors alone to imply progression, replace the hue scale with a gradient.

fix

Fix the scale type

  • Replace the gradient with distinct hues when the color-encoded field is unordered.
  • Keep one hue per category rather than stepping light-to-dark through the same color family.
  • Switch to a sequential or diverging scale if the field turns out to be ordered.

References

Muth, L. C. (2021). Which color scale to use when visualizing data. https://www.datawrapper.de/blog/which-color-scale-to-use-in-data-vis