I have a pie chart being created in Spire XLS and it has extra secondary labels using this line of code
cs.DataPoints.DefaultDataPoint.DataLabels.ValueFromCell = ws.Range[headerRow +1, 3, rownumber - 1, 3];
this works when I look in the chart (they are percent values so it each label in the chart is 10%, 33 etc)
But when i call wb.SaveChartAsImages(ws) the extra labels are not showing in the image (it shows the 33 but not the 10%)
But on a stacked column with single series doing the same thing, the extra labels are showing in the image. So I have to assume it is the way you are processing the image in a pie chart.
Can you confirm?
To recreate the issue create the following data
Task Total
item1 9 12 %
item2 8 11 %
item3 6 8 %
item4 5 7 %
item5 4 5 %
item6 4 5 %
item7 4 5 %
item8 4 5 %
item9 4 5 %
item10 3 4 %
then create a pie chart using the first two columns (the second column is the values) and add the 3rd column as the extra data labels. It will work.
Then get the image from the worksheet and paste it into Word using Spire.Doc. The secondary labels do not work