View as Markdown

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;
}
SparklineTooltipOptions members (3)
NameSignatureDescription
formatoptionalreadonly format?: ((point: SparklinePoint) => string) | undefined;
renderoptionalreadonly render?: ((point: SparklinePoint) => ReactNode) | undefined;
trackLineoptionalreadonly trackLine?: boolean | undefined;

Vertical track line at the hovered point. Default true.