Next
Update
Prev
Default

You can draw ranges 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 range in the chart using <backgroundElements>.

One <AxisRange> is defined in this sample chart to draw the range which is from 1,600 to 2,800.

...
  <backgroundElements>
    <GridLines/>
    <AxisMarker>
      <ranges>
        <AxisRange startValue="1600" endValue="2800" label="Range" labelHorizontalAlign="left">
          <fill>
            <SolidColor color="#B7F0B1" alpha="0.6">
          </fill>
        </AxisRange>
      </ranges>
    </AxisMarker>                  
  </backgroundElements>
...

© 2017 KoolChart. All rights reserved.