ChartCrosshairProps
Defines the configuration options for the chart crosshair.
Props
The following table outlines the props for the ChartCrosshairProps:
| Name | Type | Default | Description |
|---|---|---|---|
| enable | boolean | false | Enables or disables the crosshair line.
When set to |
| highlightCategory | boolean | false | Highlights the entire category range on hover. This option is applicable only for category axes. |
| lineStyle | { color: undefined, width: 1, dashArray: '' } | Specifies the visual style of the crosshair line.
You can customize the line's color, width, and dash pattern
using the | |
| lineType | Both | Determines the orientation of the crosshair lines. Available options:
| |
| snap | boolean | true | Specifies whether the crosshair should snap to the nearest data point or follow the mouse pointer.
When |