Next
Update
Prev
Select All
Clear All

You can add the chart legend using the <Legend> element tag which is defined as a child node of the <Options> element tag.

This sample chart is to show how to represent the chart legend at the bottom of the chart.

...
<Options>
  <Caption text="Legend Sample" />
  <Legend useVisibleCheck="true" horizontalGap="0" position="bottom" horizontalScrollPolicy="off" />
</Options>
...

Legend

useVisibleCheck The useVisibleCheck attribute determines whether or not to use the checkbox in the chart legend. you cannot use the checkbox in the chart legend for the pie or doughnut chart.
horizontalGap The horizontalGap attribute is to set the horizontal gap between two consecutive items (checkbox, marker, text) in the chart legend.
position The position attribute is to set the location of the chart legend. The valid values are "left", "right", "top" and "bottom".
horizontalScrollPolicy The horizontalScrollPolicy attribute determines whether or not to add the horizontal scrollbar to the chart legend.

© 2017 KoolChart. All rights reserved.