Skip to main content
Version: 5.2

Interface: CrosshairLineOptions

Structure describing a crosshair line (vertical or horizontal)

Properties​

color​

color: string

Crosshair line color.

Default Value​

'#758696'


width​

width: LineWidth

Crosshair line width.

Default Value​

1


style​

style: LineStyle

Crosshair line style.

Default Value​

{@link LineStyle.LargeDashed}

visible​

visible: boolean

Display the crosshair line.

Note that disabling crosshair lines does not disable crosshair marker on Line and Area series. It can be disabled by using crosshairMarkerVisible option of a relevant series.

See​

Default Value​

true


labelVisible​

labelVisible: boolean

Display the crosshair label on the relevant scale.

Default Value​

true


labelBackgroundColor​

labelBackgroundColor: string

Crosshair label background color.

Default Value​

'#4c525e'