Hello,
I’m trying to fix the position of the datalabel in a Donut chart by doing as below :
IChartSeries iChartSeries = ichart.getChartData().getSeries().add(iChartDataWorkbook.getCell(defaultWorksheetIndex, 0, 1, “Serie_1”), ichart.getType());
iChartSeries.getLabels().getDefaultDataLabelFormat().setShowPercentage(true);
iChartSeries.getLabels().getDefaultDataLabelFormat().setPosition(LegendDataLabelPosition.BestFit);
But it did not work, I had this error :
class com.aspose.slides.exceptions.InvalidOperationException: Wrong label position for this type of series. Possible values: supports only default value
com.aspose.slides.DataLabelFormat.setPosition(Unknown Source)
Thanks.