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;
}
| Name | Signature | Description |
|---|---|---|
x | readonly x: number | string | Date; | |
y | readonly y: number; | |
unitsoptional | readonly units?: 'data' | 'pixel' | undefined; | |
xAxisoptional | readonly xAxis?: string | undefined; | |
yAxisoptional | readonly yAxis?: string | undefined; | |
content | readonly content: ReactNode; |