You can display data labels with the format defined in the JavaScript function. To use the user-defined function for data labels in the pie chart, you must set a JavaScript function name to the value of labelJsFunction attribute in the <Pie2DSeries> or <Pie3DSeries> element tags.

This sample pie chart is to show how to define a JavaScript function to create the user-defined data label.

<Pie2DChart ...  >
  <Pie2DSeries ... labelPosition="inside" labelJsFunction="pieSeriesLabelFunc" >

function pieSeriesLabelFunc(seriesID, index, data, values)
  return data["Month"] + ", " + Number(values[1]).toFixed(2) + "%";

© 2017 KoolChart. All rights reserved.