API reference: @salmonui/charts/sparkline
SparklineTooltipOptionsinterface
import type { SparklineTooltipOptions } from '@salmonui/charts/sparkline';interface SparklineTooltipOptions {
readonly format?: ((point: SparklinePoint) => string) | undefined;
readonly render?: ((point: SparklinePoint) => ReactNode) | undefined;
readonly trackLine?: boolean | undefined;
}
| Name | Signature | Description |
|---|---|---|
formatoptional | readonly format?: ((point: SparklinePoint) => string) | undefined; | |
renderoptional | readonly render?: ((point: SparklinePoint) => ReactNode) | undefined; | |
trackLineoptional | readonly trackLine?: boolean | undefined; | Vertical track line at the hovered point. Default true. |