addPointAnnotation
Draws a point annotation on the chart after it has been rendered. Can be used to highlight specific data points. You can choose whether the annotation should persist through future chart updates.
See addPointAnnotation – ApexCharts Docs for more information.
Overview
Syntax
component.addPointAnnotation(options, pushToMemory)
Parameters
Type | Parameter | Description |
---|---|---|
Dictionary | options | Annotation config object. Same structure as defined in point annotations configuration. |
Boolean | pushToMemory | If True, the annotation is preserved on subsequent chart updates. Set to False to make it temporary. |
Returns
None
Examples
Add Point Annotation
This example draws a labeled annotation at a specific X/Y coordinate.
self.getSibling("apexchart").addPointAnnotation({
"x": 1698098270040,
"y": 40,
"label": {
"text": "Lorem Ipsum"
}
}, True)