Skip to content

grafit-charts


Type Alias: AnnotationOptions

AnnotationOptions = { label?: AnnotationLabel; lineDash?: Pixels[]; stroke?: ColorValue; strokeWidth?: Pixels; type: "horizontal-line"; value: number; } | { label?: AnnotationLabel; lineDash?: Pixels[]; stroke?: ColorValue; strokeWidth?: Pixels; type: "vertical-line"; value: unknown; } | { end: { x: unknown; y: number; }; lineDash?: Pixels[]; start: { x: unknown; y: number; }; stroke?: ColorValue; strokeWidth?: Pixels; type: "line"; } | { color?: ColorValue; fontSize?: Pixels; text: string; type: "text"; x: unknown; y: number; } | { axis: "x" | "y"; fill?: ColorValue; fillOpacity?: number; label?: AnnotationLabel; range: [unknown, unknown]; type: "range"; }