setAnnotationList() Method
Description
Sets new annotation list to the chart, replacing all that are on the charts at the moment. Can be called only after onChartDraw event is fired.
This method can be highly useful to add annotations added by user in previous sessions. To get the list of added annotations use getAnnotationListAsJSON() and getAnnotationListAsXML() methods.
Parameters
- config: Object or String
Annotations list as:
- JSON array of annotation type.
- XML string with <annotation_list> node.
Returns
Boolean.
If the list is successfully added - "true", if failed - "false".
Samples
Online HTML/JavaScript Sample