Events for annotation and indicator changed
For a StockChart every time the user adds, removes or modifies an annotation or an indicator, either over the annotation-/indicator-popup or by dragging an annotation-control-point directly, an event on the chart instance should be fired, so that you can e.g. automatically save the chart-state every time something has changed.
Maybe something like:
Highcharts.Chart#events:annotationChanged
Highcharts.Chart#events:indicatorChanged
![](https://secure.gravatar.com/avatar/a113a684b05a75de27ba79c93f1cd5b2?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)
![](https://secure.gravatar.com/avatar/9e3b289f1dd5afccc0d376807cda00ea?size=40&default=https%3A%2F%2Fassets.uvcdn.com%2Fpkg%2Fadmin%2Ficons%2Fuser_70-6bcf9e08938533adb9bac95c3e487cb2a6d4a32f890ca6fdc82e3072e0ea0368.png)
Hi,
Thank you for submitting the idea.
Basic events are already here: on chart level we have addSeries (https://api.highcharts.com/highcharts/chart.events.addSeries) and series remove – implemented, but not a part of documented API (demo: http://jsfiddle.net/BlackLabel/0cosmk2g/) or similar series destroy (the same situation).
For series update you could use series render event (not a part of documented API).
Events for annotation update are not yet implemented.
How to resolve:
Generally, this could be implemented through extending Highcharts. Related functions that create, update and destroy annotations could be wrapped to fire additional events. I’ll try to provide a POC later this week.
-
shital Patel commented
i am also interested in the annotation events. since we have requirement to save charts state after every change..Is there a update on this ?