CrosshairOptions
Options for the crosshair display on an axis.
Properties
color?
optionalcolor:string
Color of the crosshair line.
cssClass?
optionalcssClass:string
Optional CSS class to write to the crosshair element.
labelColor?
optionallabelColor:string
Color for the label text. Defaults to the same color as the line.
labelFont?
optionallabelFont:FontSpec
Font for the label.
labelFormat?
optionallabelFormat:string
Formatter for the label.
labelPosition?
optionallabelPosition:"end"|"start"
Position of the label on the crosshair. For a horizontal line, 'start' means 'left' and 'end' means 'right'. For a vertical line, 'start' means 'bottom' and 'end' means 'top'.
labelValueFormat?
optionallabelValueFormat:number|"float"|"int"
Standard number format for the value (e.g. 'int', 'float', or a number for decimal places).
showLabel?
optionalshowLabel:boolean
Whether or not to show the current value on the crosshair. Defaults to true.
width?
optionalwidth:number
Width of the crosshair line. Defaults to 1.