Next
Update
Prev
Default

A pie chart is a circular statistical graphic, which is divided into sectors to illustrate numerical proportion. The <Pie2DChart> element tag is used to create a pie chart in KoolChart, and the series element tag for the pie chart is <Pie2DSeries>.

...
<Pie2DSeries nameField="Country" field="Export" labelPosition="inside" color="#ffffff" startAngle="90" >
  ...
</Pie2DSeries>
...

<Pie2DSeries>

nameField The nameField attribute determines which field in the Data Object will be used as the category names. In the above chart, the "Country" field is used.
field The field attribute determines which field in the Data Object will be used as the data field. In the above chart, the "Export" field is used.
labelPosition The labelPosition attribute controls the positioning of labels. The valid values for this attribute in <Pie2DSeries> are "outside", "callout", "inside", "insideWithCallout" and "none". The default value is "none".
color The color attribute determines the label color.
startAngle The startAngle attribute determines the start angle for the first slice. The default value is "0". ( 3 o'clock direction )

© 2017 KoolChart. All rights reserved.