Spire.Presentation is a professional PowerPoint® compatible library that enables developers to create, read, write, modify, convert and Print PowerPoint documents. Get free and professional technical support for Spire.Presentation for .NET, Java, Android, C++, Python.
Thu Oct 20, 2022 3:47 pm
Is it possible to update the data in a chart like this, which has nested categories and series.
Nested categories and series.PNG
Here's the template:
nested_chartdata_exmaple.zip
Login to view the files attached to this post.
-
majeed_s
-
- Posts: 80
- Joined: Thu Mar 25, 2021 4:13 pm
Fri Oct 21, 2022 8:43 am
Hello,
Thanks for your inquiry.
Our product supports modifying the data and updating it to the chart, you can refer to my code below to have a test. If there is still any issues, please share us with your testing code for further investigation.
- Code: Select all
//Create PPT document and load file
Presentation ppt = new Presentation();
ppt.LoadFromFile(@"E:\Test\nested_chartdata_exmaple.pptx");
//Get chart on the first slide
IChart Chart = ppt.Slides[0].Shapes[0] as IChart;
Chart.ChartData["C4"].Value = 65;
String result = "EditChartData_result.pptx";
//Save the document
ppt.SaveToFile(result, FileFormat.Pptx2010);
Sincerely,
Simple
E-iceblue support team
-
Simple.Li
-
- Posts: 248
- Joined: Fri Jul 01, 2022 2:33 am
Mon Oct 24, 2022 9:33 am
Hello,
Could you please let us know how is your issue going? Thanks in advance for your feedback and time.
Sincerely,
Simple
E-iceblue support team
-
Simple.Li
-
- Posts: 248
- Joined: Fri Jul 01, 2022 2:33 am
Tue Oct 25, 2022 9:42 am
Thanks!
-
majeed_s
-
- Posts: 80
- Joined: Thu Mar 25, 2021 4:13 pm
Wed Oct 26, 2022 10:52 am
Hello,
If you have any other issue, just feel free to contact us.
Sincerely
Abel
E-iceblue support team
-
Abel.He
-
- Posts: 1010
- Joined: Tue Mar 08, 2022 2:02 am