palette

Input Stack:
String
TimeSeriesExpr
Output Stack:
StyleExpr
 

Set the palette to use for the results of an expression. This operator is allows for scoping a palette to a particular group by instead of to all lines that share the same axis. A common use-case is to have multiple stacked group by expressions using different palettes. For example, suppose I want to create a graph showing overall request per second hitting my services with successful requests shown in shades of green and errors in shades of red. This can make it easy to visually see if a change is due to an increase in errors:

Spike in Errors

Or a spike in successful requests:

Spike in Success

Examples:

BeforeAfter
name,sps,:eq,
:sum
name,sps,:eq,
:sum,
reds,:palette
BeforeAfter
name,sps,:eq,
:sum,
(,nf.cluster,),:by
name,sps,:eq,
:sum,
(,nf.cluster,),:by,
reds,:palette