I am using Cells version 22.214.171.124.
I have got a pre-configured chart with 4 data series. At runtime, I setup the data ranges for the 4 series. In some cases, I only have 3 datasets at runtime, so I remove the 4th series using objChart.NSeries.RemoveAt(lastIndex);. Debugging right after this statement shows that the number of NSeries is now down to 3, but when the chart is viewed legend entries have the 4th Series as a blank series.
Can you please help?
Could you post your template file here, we will check your issue soon.
Please find attached the template file.
Thanks for providing us the template file.
Could you try the attached version. I have tested with it using your template file and the output file is fine, the fourth series and its legend entry is removed altogether. My sample code is given below:
Workbook wb1 = new Workbook();
chart = wb1.Worksheets.Charts;
Thank you. It works very well.