Next
Update
Prev
Default

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 right of the chart.

...
<Options>
  <Caption text="Annual Report" />
  <Legend useVisibleCheck="true" position="right" direction="vertical" labelPlacement="top" />
</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.
position The position attribute is to set the location of the chart legend. The valid values are "left", "right", "top" and "bottom".
direction The direction attribute is to set the display direction of the legend items. The valid values are "horizontal" and "vertical".
labelPlacement The labelPlacement attribute is to set the location of the text label in the chart legend. The valid values are "right", "left", "top" and "bottom".

© 2017 KoolChart. All rights reserved.