Skip to main content
Horizontal Target Line

Examples

Horizontal Target Line

Horizontal Target Line

Vertical Line at Date

Vertical Line at Date

Reference Lines from Data

Reference Lines from Data

Custom Label Styling

Custom Label Styling

Multiple Reference Lines

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_end
      • above_start
      • above_center
      • below_end
      • below_start
      • below_center
  • align: string
    • Allowed values:
      • left
      • center
      • right
  • color: string
  • background_color: string
  • padding: number
  • fmt: string - Format the label value. Defaults to series or axis fmt.
  • hide_value: boolean
  • border: options group
    • Options:
      • width: number
      • type: string
        • Allowed values:
          • solid
          • dashed
          • dotted
      • color: string
      • radius: number
  • text: options group
    • Options:
      • size: number
      • bold: boolean
      • italic: boolean
options group
Styling options for the line itselfExample:
Attributes:
  • color: string
  • width: number - Width of the line
  • type: string
    • Allowed values:
      • solid
      • dashed
      • dotted
  • opacity: number - Between 0 and 1
options group
Symbol shapes to display at line endpointsExample:
Attributes:
  • start: options group
    • Options:
      • shape: string
        • Allowed values:
          • circle
          • emptyCircle
          • rect
          • roundRect
          • triangle
          • diamond
          • pin
          • arrow
          • none
          • image://
          • path://
      • size: number
  • end: options group
    • Options:
      • shape: string
        • Allowed values:
          • circle
          • emptyCircle
          • rect
          • roundRect
          • triangle
          • diamond
          • pin
          • arrow
          • none
          • image://
          • path://
      • size: number

Allowed Parents