BaseAnnotationSpec
@elastic/charts • Exports
@elastic/charts / BaseAnnotationSpec
Interface: BaseAnnotationSpec<T, AD, S, D>
Contents
Extends
Type parameters
• T extends typeof AnnotationType.Rectangle | typeof AnnotationType.Line
• AD extends RectAnnotationDatum | LineAnnotationDatum<D>
• S extends RectAnnotationStyle | LineAnnotationStyle
• D = never
Properties
animations?
animations?:
AnnotationAnimationConfig[]
Animation configurations for annotations
Source
packages/charts/src/chart_types/xy_chart/utils/specs.ts:1010
annotationType
annotationType:
T
Annotation type: line, rectangle
Source
packages/charts/src/chart_types/xy_chart/utils/specs.ts:984
boundary?
boundary?:
HTMLElement|"chart"
Boundary element to contain tooltip within
'chart' will use the chart container as the boundary
Default Value
parent scroll container
Inherited from
AnnotationPortalSettings.boundary
Source
packages/charts/src/components/portal/types.ts:112
boundaryPadding?
boundaryPadding?:
number|Partial<PerSideDistance>
Boundary element padding. Used to reduce extents of boundary placement when margins or paddings are used on boundary
Default Value
0
Inherited from
AnnotationPortalSettings.boundaryPadding
Source
packages/charts/src/components/portal/types.ts:119
chartType
chartType:
"xy_axis"
Chart type define the type of chart that use this spec
Overrides
Source
packages/charts/src/chart_types/xy_chart/utils/specs.ts:979
customTooltip?
customTooltip?:
CustomAnnotationTooltip
The react component used to render a custom tooltip
Inherited from
AnnotationPortalSettings.customTooltip
Source
packages/charts/src/chart_types/xy_chart/utils/specs.ts:963
customTooltipDetails?
customTooltipDetails?:
AnnotationTooltipFormatter
The react component used to render a custom tooltip details
Inherited from
AnnotationPortalSettings.customTooltipDetails