Type Alias: AnnotationOptions
AnnotationOptions = {
label?:LineAnnotationLabel;lineDash?:Pixels[];stroke?:ColorValue;strokeWidth?:Pixels;type:"horizontal-line";value:number|ComputedAnnotationValue; } | {label?:LineAnnotationLabel;lineDash?:Pixels[];stroke?:ColorValue;strokeWidth?:Pixels;type:"vertical-line";value:unknown|ComputedAnnotationValue; } | {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|ComputedAnnotationValue,unknown|ComputedAnnotationValue];type:"range"; }
Union Members
Type Literal
{ label?: LineAnnotationLabel; lineDash?: Pixels[]; stroke?: ColorValue; strokeWidth?: Pixels; type: "horizontal-line"; value: number | ComputedAnnotationValue; }
label?
optionallabel?:LineAnnotationLabel
lineDash?
optionallineDash?:Pixels[]
stroke?
optionalstroke?:ColorValue
strokeWidth?
optionalstrokeWidth?:Pixels
type
type:
"horizontal-line"
value
value:
number|ComputedAnnotationValue
A level, or the statistic that decides it: { stat: 'mean', field: 'price' }.
Type Literal
{ label?: LineAnnotationLabel; lineDash?: Pixels[]; stroke?: ColorValue; strokeWidth?: Pixels; type: "vertical-line"; value: unknown | ComputedAnnotationValue; }
label?
optionallabel?:LineAnnotationLabel
lineDash?
optionallineDash?:Pixels[]
stroke?
optionalstroke?:ColorValue
strokeWidth?
optionalstrokeWidth?:Pixels
type
type:
"vertical-line"
value
value:
unknown|ComputedAnnotationValue
A category, a date, a number — or a statistic over a field.
Type Literal
{ end: { x: unknown; y: number; }; lineDash?: Pixels[]; start: { x: unknown; y: number; }; stroke?: ColorValue; strokeWidth?: Pixels; type: "line"; }
Type Literal
{ color?: ColorValue; fontSize?: Pixels; text: string; type: "text"; x: unknown; y: number; }
Type Literal
{ axis: "x" | "y"; fill?: ColorValue; fillOpacity?: number; label?: AnnotationLabel; range: [unknown | ComputedAnnotationValue, unknown | ComputedAnnotationValue]; type: "range"; }
axis
axis:
"x"|"y"
fill?
optionalfill?:ColorValue
fillOpacity?
optionalfillOpacity?:number
label?
optionallabel?:AnnotationLabel
range
range: [
unknown|ComputedAnnotationValue,unknown|ComputedAnnotationValue]
Both ends take a statistic too: [{ stat: 'percentile', percentile: 5, … }, …].
type
type:
"range"