label

Specifies the options of the crosshair labels.

Type:

Object

Crosshair labels indicate the argument and the value of the series point that the crosshair pointer currently focuses on. These labels use the chart axes to indicate the argument and the value on them.

There are two crosshair labels on a chart - one for each crosshair line. To specify the settings of both these labels, use the fields of the crosshair | label object. To specify these settings for each label individually, use the same fields within the crosshair | horizontalLine | label or crosshair | verticalLine | label object.

To make the crosshair labels visible, assign true to the label | visible field. Additionally, you can change the color of the label's background using the backgroundColor option and specify the font settings of the label's text using the font object.

backgroundColor

Specifies a color for the background of the crosshair labels.

Type:

String

Default Value: "#f78119"

This option supports the following colors.

  • Hexadecimal colors
  • RGB colors
  • RGBA colors (not supported in Internet Explorer 8)
  • Predefined/cross-browser color names
  • Predefined SVG colors (not supported in Internet Explorer 8)

font

Specifies font options for the text of the crosshair labels.

Type:

Object

visible

Specifies whether the crosshair labels are visible or not.

Type:

Boolean

Default Value: false