API reference: @salmonui/charts/chart
ChartCrosshairOptionsinterface
import type { ChartCrosshairOptions } from '@salmonui/charts/chart';interface ChartCrosshairOptions {
readonly lines?: 'both' | 'x' | 'y' | undefined;
readonly snap?: boolean | undefined;
readonly highlightCategory?: boolean | undefined;
readonly axisLabels?: boolean | undefined;
readonly formatLabel?: ((value: unknown, axisId: string) => string) | undefined;
}
| Name | Signature | Description |
|---|---|---|
linesoptional | readonly lines?: 'both' | 'x' | 'y' | undefined; | |
snapoptional | readonly snap?: boolean | undefined; | |
highlightCategoryoptional | readonly highlightCategory?: boolean | undefined; | Shades the hovered category band of a category x axis. |
axisLabelsoptional | readonly axisLabels?: boolean | undefined; | Value labels on the axes at the crosshair lines. |
formatLabeloptional | readonly formatLabel?: ((value: unknown, axisId: string) => string) | undefined; | Axis label text; the axis format otherwise. |