ChartAnnotationProps
Represents an annotation element displayed on the chart.
Props
The following table outlines the props for the ChartAnnotationProps:
| Name | Type | Default | Description |
|---|---|---|---|
| accessibility | { ariaLabel: null, role: 'img', focusable: true, tabIndex: 0 } | Enhances accessibility for annotation elements to ensure compatibility with assistive technologies, such as screen readers and keyboard navigation. | |
| content | string | null | Content of the annotation. Accepts HTML string, plain text, or DOM element ID. |
| coordinateUnit | 'Point' | Defines whether position values are axis-based ('Point') or pixel-based ('Pixel'). | |
| hAlign | 'Center' | Horizontal alignment relative to the X-position. Available Options:
| |
| vAlign | 'Center' | Vertical alignment relative to the Y-position. Available options :
| |
| x | string | Date | number | null | X-axis position of the annotation.
|
| xAxisName | string | null | null | Name of the X-axis to bind when coordinateUnit is 'Point'. |
| y | string | number | null | Y-axis position of the annotation.
|
| yAxisName | string | null | null | Name of the Y-axis to bind when coordinateUnit is 'Point'. |