exc.Charts.Add(oMissing,oMissing,1,oMissing);
exc.ActiveChart.ChartType=Excel.XlChartType.xlColumnClustered;
exc.ActiveChart.SetSourceData(worksheet.get_Range("A1","B10"),Excel.XlRowCol.xlColumns);
exc.ActiveChart.Location(Excel.XlChartLocation.xlLocationAsObject,"sheet1");
exc.ActiveChart.HasTitle=true;
exc.ActiveChart.ChartTitle.Text="图表名称";
exc.ActiveChart.HasDataTable=false;
![](https://img2024.cnblogs.com/blog/35695/202408/35695-20240826070647288-243310440.jpg)