ChartCrosshairLineStyleProps

Represents the styling options for crosshair lines in a chart.

Props

The following table outlines the props for the ChartCrosshairLineStyleProps:

NameTypeDefaultDescription
color
string
''

Specifies the color of the crosshair lines. Accepts any valid CSS color string, including hexadecimal, RGB, or RGBA formats.

dashArray
string
'5,5'

Defines the dash pattern for the crosshair lines. Accepts a string of numbers that specify the lengths of dashes and gaps (e.g., "5,3").

opacity
number
1

Sets the transparency level of the crosshair lines. Accepts a value from 0 (fully transparent) to 1 (fully opaque).

width
number
1

Sets the width of the crosshair lines, in pixels.