startDrawingAnnotation() Method

Description

Starts drawing annotation of a given type.

If the drawing started successfuly, fires onAnnotationDrawingStart event. When all required points of annotation are added to the chart, component leaves drawing mode and fires onAnnotationDrawingFinish event. If you want to leave drawing mode compulsory you need to use stopDrawingAnnotation() method.

Note: You can call this method only after onChartDraw is fired.

Parameters

Returns

Boolean.

Returns "true", if annotation is added successfully, returns "true" - if drawing is impossible.

Samples

Calling sample - simple line drawing:



Calling sample - Line with additional settings in JSON format:



Calling sample - Line with additional settings in XML format:



Calling sample - Label with additional font, background and position settings in JSON format:



Sample:

Online HTML/JavaScript Sample

See also

stopDrawingAnnotation()

to top