Hi Team,
we have an use case that, in Radar chart series, will have to move one of the Data Label series away from the edge point (default position) but aspose library methods were not supporting to do so.
code snippet:
ChartSeries series = chartSeries.get_Item(seriesIndex); // will get series based on the seriesIndex 0 / 1
IChartDataCell cellData = chartDataWorkBook.getCell(
defaultWorksheetIndex,
index + 1,
seriesIndex + 1,
domain.getScore()); // setting the celldata
series.getDataPoints().addDataPointForRadarSeries(cellData); // setting cellData to the series
series.getLabels().getDefaultDataLabelFormat().setShowValue(true); // enabling data labels to show
series.getLabels().getDefaultDataLabelFormat().setPosition(LegendDataLabelPosition.BestFit); // option to move the data labels
Output: InvalidOperationException
Caused by: com.aspose.slides.exceptions.InvalidOperationException: Wrong label position for this type of series. Possible values: supports only default value
at com.aspose.slides.DataLabelFormat.setPosition(Unknown Source)
Caused by: com.aspose.slides.exceptions.InvalidOperationException: Wrong label position for this type of series. Possible values: supports only default value