API / Configuration / AxisCrosshair
Defined in: src/types/chart/axis.ts:131
Extends
Omit
<AxisPlotLine
,"value"
>
Properties
Property | Type | Description |
---|---|---|
color? |
string |
The color of the plot line (hex, rgba). |
dashStyle? |
"Dash" | "DashDot" | "Dot" | "LongDash" | "LongDashDot" | "LongDashDotDot" | "ShortDash" | "ShortDashDot" | "ShortDashDotDot" | "ShortDot" | "Solid" |
Option for line stroke style. |
enabled? |
boolean |
Enable or disable the axis crosshair. Default false |
layerPlacement? |
PlotLayerPlacement |
Place the line behind or above the chart. |
opacity? |
number |
Individual opacity for the line. Default 1 |
snap? |
boolean |
Whether the crosshair should snap to the point or follow the pointer independent of points. Default true |
width? |
number |
Pixel width of the plot line. Default 1 |