Skip to content

Plot color rule

One manual colour: a trace or category value, how to match it, and the colour it must always be given. Consumed by buildPlotColorMap in UI/src/js/portal/plot_colorway.js — keep the member names in step with it. A colour used by a rule is removed from the palette before the remaining values are coloured, so a manual colour can never collide with an automatic one.

Reached from > Color Rules on Portal theme.

Settings

ValueRequired

Type
Text

The text to match against the trace or category value, as it appears in the chart legend or on the axis (for a lookup, its display name). Rows whose value is empty are shown as '(no value)' — write that to colour them.

Match

Type
One of a list
Default
Is exactly

How the value above is compared. Use 'Contains' or 'Ends with' when the same status is written differently in different places — '1. High' and 'High' both end with 'High'. Rules are tried in the order they are listed and the first match wins, so put the most specific ones first. Default: Equals.

  • Is exactly
  • Contains
  • Starts with
  • Ends with

Case sensitive

Type
Yes or no

Off by default, so 'High' also matches 'HIGH' and 'high'. Default: no.

Color

Type
Text
Default
#2185d0

The color this value always gets. No other value in the plot will be given this color. Default: #2185d0.

Generated from CtrlPortals 3.26.9.53.