label

Configures the label that belongs to the vertical crosshair line.

Type:

Object

The label of the vertical crosshair line indicates the value of the series point currently focused by the crosshair pointer. The value is indicated on the value axis.

To make the label of the vertical crosshair line 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.

The options of the crosshair | verticalLine | label object configure only the label that belongs to the vertical crosshair line. The same options may be specified for both the labels at once using the label object declared straight in the crosshair object.

backgroundColor

Specifies a color for the background of the label that belongs to the vertical crosshair line.

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 label that belongs to the vertical crosshair line.

Type:

Object

visible

Specifies whether the label of the vertical crosshair line is visible or not.

Type:

Boolean

Default Value: false

To make the crosshair label visible, show the verticalLine first.