addAnnotation() Method

Description

Adds new annotation to the chart.
This function can be called only onChartDraw event has been fired, if you call addAnnotation prior to that - no annotation is added.

Parameters

Returns

Boolean.

Note: If "true" - annotation is added successfully, in the opposite case - "false" is returned.

Samples

Add annotation using JSON:


Add annotation using XML:


Sample:

Online HTML/JavaScript Sample

See also

removeAnnotation()

to top