Skip to content
Learn › Clean and shape data › Highlight values: open the docs menu

Add a colour scale to a number or date column

A Color Scale in Conditional Highlights colours a number or date column with a gradient based on its range, to show distributions and rankings. Like other highlights it doesn't change your data and is saved to the View. For single-colour rules, see Highlight cells and rows with colour.

Create a colour scale

  1. Click New conditional highlight.
  2. Click the Color Scale tab.
  3. Pick a column. Only visible Numeric and Date columns are listed.
  4. Pick a scale preset.
  5. For a 3-colour scale, optionally set Colors change at to move the midpoint.
  6. Optionally enter Min and Max to replace the detected range.
  7. Click Save highlight.
Color Scale tab with customer_age selected and six preset color scales, plus optional Min and Max fields
PresetLow valueMid valueHigh valueColors change at
Red → Yellow → GreenRedYellowGreenYes
Green → Yellow → RedGreenYellowRedYes
Red → White → GreenRedWhiteGreenYes
White → BlueWhiteNoneBlueNo
White → RedWhiteNoneRedNo
White → GreenWhiteNoneGreenNo

Colors change at sets where the middle colour sits. It takes a number for Numeric columns and shows a date picker for Date columns. Leave it blank to split the gradient evenly.

By default the scale uses the column's own minimum and maximum, shown as the Min and Max placeholders. Enter your own to keep colours the same across Views or over time.

Troubleshooting colour scales

SymptomCauseFix
A column is missing from the Color Scale listOnly visible Numeric and Date columns are listedShow the column, or convert it to a number or date

A Color Scale placed above a Condition Rule colours every value in its column: see Which highlight rule wins.

Was this page helpful?

Something wrong? support@mammoth.io