color
Input Stack:color: String | expr: TimeSeriesExpr |
|
⇨ |
Output Stack: |
Set the color for rendering the time series line. This allows you to specify exact colors for
individual series, overriding the default color palette. Colors can be specified using hex
codes, named colors, or ARGB values that include transparency.
Parameters
- expr: The time series expression to apply color styling to
- color: Color specification (see supported formats below)
- 3-digit hex triplet: e.g.
f00
is red
- 6-digit hex RGB: e.g.
ff0000
is red
- 8-digit hex ARGB: e.g.
ffff0000
is red with full opacity (first byte is alpha)
- Named colors: Theme-aware color names that adapt to light/dark themes:
blue1
, blue2
, blue3
gray1
, gray2
, gray3
green1
, green2
, green3
orange1
, orange2
, orange3
purple1
, purple2
, purple3
red1
, red2
, red3
Examples
Setting a specific red color:
Alpha Channel Behavior
When using 8-digit ARGB format, the color includes its own alpha channel. If :alpha
is applied after :color
, it will modify the alpha channel of the previously set color.
However, if :color
is applied after :alpha
, it will override the alpha setting.
- :alpha - Set transparency (interacts with ARGB colors)
- :palette - Use color palettes for multiple series
- :lw - Set line width
- :line - Set line style
See Also