Create Path Annotations
Prerequisites
The path annotation lets you draw free-form graphic elements on your charts.
The JSON structure to create path annotations is given below:
{
"chart": {
...
},
"data": [{
...
}],
"annotations": {
"groups": [{
"items": [{
"type": "path",
//Define the attributes needed to create the path annotation
...
}]
}]
}
}
You can draw free-form graphic elements on your charts using the path annotation. Use the following attributes to create path annotations:
Specify a unique identification string for the path annotation using the
idattribute.Specify the type of annotation by setting the
typeattribute value topath.Specify the path command and accepts standard SVG path format, using the
pathattribute.Set the x coordinate of the starting position of the path for the leftmost position (taken as zero) of the chart using the
xattribute.Set the y coordinate of the starting position of the path for the topmost position (taken as zero) of the chart using the
yattribute.Specify the hex color code for the annotation using the
colorattribute.Specify the transparency of the annotation using the
alphaattribute, which takes values between 0 (transparent) and 100 (opaque, default).