We're sorry Aspose doesn't work properply without JavaScript enabled.

Free Support Forum - aspose.com

Update chart datasource


I have created a chart in an excel file, the name of the chart is 'Graphic 1', and we use Aspose.Cells to fill a sheet of the workbook. But i would like tu update the datasource of the chart to take care of all data apped.

I saw that i can (add or update ?) data to the chart with this line of code :
Chart chart=worksheet.Charts[chartIndex];

Can you give us a sample of code to do use the name of the chart (Graphic 1).



Thanks for considering Aspose.

We will implement this feature (Accessing designer charts by its name) soon.

Thanks for being patient.


If the chart is not in 2007 xlsx template file, we have support this feature.

Please try the following codes :Chart chart=worksheet.Charts["Graphic 1"];