Example

{% reference_line y=2500000 color="red"/%}

Attributes

data
String
label
String
x
String | Number
y
String | Number
x1
String | Number
y1
String | Number
x2
String | Number
y2
String | Number
color
String
label_options
default:"{}"
Example:
label_options={
  position = value
  align = value
  color = "string"
  background_color = "string"
  padding = 0
  fmt = value
  hide_value = true
  border = { ... }
  text = { ... }
}
Attributes:
  • position: effects
  • align: enum
  • color: string
  • background_color: string
  • padding: number
  • fmt: enum - Format the label value. Defaults to series or axis fmt.
  • hide_value: boolean
  • border: object
  • text: object
line_options
default:"{}"
Example:
line_options={
  color = "string"
  width = 0
  type = value
  opacity = 0
}
Attributes:
  • color: string
  • width: number - Width of the line
  • type: enum
  • opacity: number - Between 0 and 1
symbols
default:"{}"
Example:
symbols={
  start = { ... }
  end = { ... }
}
Attributes:
  • start: object
  • end: object