I would like to add a diagram as shown in the following figure.

This chart has 3 series (black, red, blue).
Below is a block of code that creates a โoneโ series in a diagram ...
Excel._Workbook oWorkbook = (Excel._Workbook)oSheet.Parent; Excel._Chart oChart = (Excel._Chart)oWorkbook.Charts.Add(oSheet, Type.Missing, Type.Missing, Type.Missing); // Y axis data Excel.Range oRange = oSheet.get_Range(yRange, Type.Missing); // Creates a chart oChart.ChartWizard(oRange, chartType, 2, Excel.XlRowCol.xlColumns, Type.Missing, Type.Missing, false, title, xAxisTitle, yAxisTitle, Type.Missing); // Sets X axis category Excel.Series oSeries = (Excel.Series)oChart.SeriesCollection(1); oSeries.XValues = oSheet.get_Range(xRange, Type.Missing); oChart.Name = chartName;
The MSDN API is not useful enough, and I can hardly find any tutorial or example on this issue. (Or maybe I do not understand them so well)
It would be nice if someone gave me a solution.
source share