Skip to main content
Version: Next

Interface: CrosshairLineOptions

Structure describing a crosshair line (vertical or horizontal)

Properties

color

color: string

Crosshair line color.

defaultvalue '#758696'


width

width: LineWidth

Crosshair line width.

defaultvalue 1


style

style: LineStyle

Crosshair line style.

defaultvalue 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 LineStyleOptions.crosshairMarkerVisible

see AreaStyleOptions.crosshairMarkerVisible

see BaselineStyleOptions.crosshairMarkerVisible

defaultvalue true


labelVisible

labelVisible: boolean

Display the crosshair label on the relevant scale.

defaultvalue true


labelBackgroundColor

labelBackgroundColor: string

Crosshair label background color.

defaultvalue '#4c525e'