
Examples
Horizontal Target Line

Vertical Line at Date

Reference Lines from Data

Custom Label Styling

Multiple Reference Lines

Attributes
string
Query name to use for calculating dynamic reference values
array
IDs of filters to apply to the query (requires
data)string
Custom SQL WHERE condition to apply to the query. For date filters, use date_range instead.
string
Text label to display on the reference line
string | number
X-axis value for a vertical reference line (e.g., a date or category)
string | number
Y-axis value for a horizontal reference line (e.g., a target or threshold)
string | number
Starting x-coordinate for a sloped line
string | number
Starting y-coordinate for a sloped line
string | number
Ending x-coordinate for a sloped line
string | number
Ending y-coordinate for a sloped line
string
Color of the reference line
options group
Styling options for the labelExample:Attributes:
- position:
string- Allowed values:
above_endabove_startabove_centerbelow_endbelow_startbelow_center
- Allowed values:
- align:
string- Allowed values:
leftcenterright
- Allowed values:
- color:
string - background_color:
string - padding:
number - fmt:
string- Format the label value. Defaults to series or axis fmt.- Allowed values: See Value Formatting for all available formats.
- hide_value:
boolean - border:
options group- Options:
- width:
number - type:
string- Allowed values:
soliddasheddotted
- Allowed values:
- color:
string - radius:
number
- width:
- Options:
- text:
options group- Options:
- size:
number - bold:
boolean - italic:
boolean
- size:
- Options:
options group
Styling options for the line itselfExample:Attributes:
- color:
string - width:
number- Width of the line - type:
string- Allowed values:
soliddasheddotted
- Allowed values:
- opacity:
number- Between 0 and 1
options group
Symbol shapes to display at line endpointsExample:Attributes:
- start:
options group- Options:
- shape:
string- Allowed values:
circleemptyCirclerectroundRecttrianglediamondpinarrownoneimage://path://
- Allowed values:
- size:
number
- shape:
- Options:
- end:
options group- Options:
- shape:
string- Allowed values:
circleemptyCirclerectroundRecttrianglediamondpinarrownoneimage://path://
- Allowed values:
- size:
number
- shape:
- Options:

