View as Markdown

API reference: @salmonui/charts/chart

ChartAnnotationinterface

import type { ChartAnnotation } from '@salmonui/charts/chart';
interface ChartAnnotation {
    readonly x: number | string | Date;
    readonly y: number;
    readonly units?: 'data' | 'pixel' | undefined;
    readonly xAxis?: string | undefined;
    readonly yAxis?: string | undefined;
    readonly content: ReactNode;
}
ChartAnnotation members (6)
NameSignatureDescription
xreadonly x: number | string | Date;
yreadonly y: number;
unitsoptionalreadonly units?: 'data' | 'pixel' | undefined;
xAxisoptionalreadonly xAxis?: string | undefined;
yAxisoptionalreadonly yAxis?: string | undefined;
contentreadonly content: ReactNode;