Hi Mark,
Thank you very much for the update.
We have created the sample at our side for removing the series from the chart.
Plese try the attached sample at your side nad let us know if these helps you.
And we found the usage issue at your side that you are using the Chart Collection index of the worksheet for removing the series.
But we remove the series for the single chart object not for an chart collection.
Use the following code.
//The first worksheet object in the worksheets collection is accessed.
IWorksheet sheet = workbook.Worksheets[1];
//Getting the chart colleciton
ICharts charts = workbook.Charts;
//Getting the first chart object
IChart chart = charts[0];
//Getting the chart series collection
IChartSeries Series = chart.Series;
//Get the 3rd sereis from the collection
IChartSerie serie3 = Series[2];
//Removing the 3rd series
chart.Series.Remove(serie3);
Note:
The removal of data rows for the particular data series does not included in the other series of the chart. Then you can remove the data rows. If you remove the data source which included to the other chart series then it will affect other series drawing posiong, references to the chart.
Please let us know if you require any further clarifications.
Thanks,
Sridhar.S
ChartTemplate_8e0c85b1.zip