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.

Mon Jul 06, 2020 8:17 am

Hi ,

I have pie chart, which is taking the color by default like capture1. But series are more and dynamic i want to change the color of pie chart like capture2.(Please refer the attachments.)
How to do it Dynamically.

Regards,
Anusha

AnuH365068
 
Posts: 13
Joined: Wed Mar 04, 2020 10:45 am

Mon Jul 06, 2020 9:27 am

Hello,

Thanks for your inquiry.
You could refer to the following code snippet to set the chart style to achieve your demand. If you have further questions, please feel free to write back.
Code: Select all
chart.ChartStyle = ChartStyle.Style10;


Sincerely,
Rachel
E-iceblue support team
User avatar

rachel.lei
 
Posts: 1571
Joined: Tue Jul 09, 2019 2:22 am

Return to Spire.Presentation