Hi Anand,
We do not have direct support for this but can be achieved through
a simple workaround.
When pivot chart is created with
pivot table as data source, Syncfusion XlsIO cannot create the series because
the range of the pivot table is different from normal worksheet range. This is
the limitation of XlsIO. To use any chart series formatting, the series should
be added manually.
Please use the below code snippet to
add data labels for pivot chart series.
pivotChart.Series.Add(ExcelChartType.Column_Stacked);
IChartSerie serie = pivotChart.Series[0];
//Set data labels color
serie.DataPoints.DefaultDataPoint.DataLabels.Color = ExcelKnownColors.Blue;
serie.DataPoints.DefaultDataPoint.DataLabels.IsValue = true;
serie.DataPoints.DefaultDataPoint.DataLabels.Position
= ExcelDataLabelPosition.OutsideBase;
|
Regards,
Keerthi.