以折線圖為例
var chart = sheet.Drawings.AddChart("圖表1", eChartType.Line);
var series= (ExcelLineChartSerie)chart.Series.Add(sheet.Cells[2,2,100,2], sheet.Cells[2,1,100,1]);
series.HeaderAddress = sheet.Cells[1, 2];
var chart = sheet.Drawings.AddChart("圖表1", eChartType.Line);
var series= (ExcelLineChartSerie)chart.Series.Add(sheet.Cells[2,2,100,2], sheet.Cells[2,1,100,1]);
series.HeaderAddress = sheet.Cells[1, 2];
沒有留言:
張貼留言