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 top right of the chart and how to use the default action ( show and hide the data series ) when the mouse over the legend item.

...
<Options>
  <Legend useVisibleCheck="false" position="top" hAlign="right" labelPlacement="bottom" defaultMouseOverAction="true" />
</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".
hAlign The hAlign attribute is to set the horizontal alignment of the legend items. The valid values are "left", "center" and "right"
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".
defaultMouseOverAction The defaultMouseOverAction attribute determines whether or not to use the default action ( show and hide the data series ) when the mouse over the legend item.

© 2017 KoolChart. All rights reserved.