You can draw lines in the chart by creating the <AxisMarker> element tag as a child node of the <annotationElements> element tag or <backgroundElements> element tag. This sample is to show how to draw a line in the chart using <annotationElements>.

The value attribute in the <AxisLine> element tag controls the location of the line, and the label attribute in the <AxisLine> element tag can be set to display the annotation of the line.

        <AxisLine value="2500" label="Goal(2,500)">
            <Stroke color="#ff0000" weight="1">

© 2017 KoolChart. All rights reserved.