Duplicate chart bars appear on setting chart data workbook (C# .NET)(OP-8681)

In the attached files you can find the same pptx processed with two different versions of Aspose.Slides. As you can see in the latest version the chart is rendered with an additional bar.

Aspose.Slides.VersionComparison.zip (66.5 KB)

@andreagasparin,

I have observed the two presentation files shared by you and request you to please share the source presentation and working sample code reproducing issue.

Hi Mudassir,
I created and attached a simple program to replicate the issue.

OP-8681.zip (332.9 KB)

@andreagasparin,

Thank you for sharing the sample code. I suggest you to please add following modification to clear existing chart data workbook before setting new one.

            chart.ChartData.ChartDataWorkbook.Clear(0);
            chart.ChartData.WriteWorkbookStream(ms);

This change has worked fine on my end. I hope this will be helpful to you.

Hi Mudassir,
The workaround suggested works for me.
Thanks for the quickly response.
Anyway, I think you should open a ticket to the R&D to fix the issue.

@andreagasparin,

It’s good to know that things are fine on your end with suggested code sample. I have created an issue with ID SLIDESNET-41281 as enhancement to further investigate and resolve the issue. This thread has been linked with the issue so that you may be notified once the issue will be fixed.

The issues you have found earlier (filed as SLIDESNET-41281) have been fixed in this update.