不要用excel的插件乐,画出来没有意思的,不好看,
使用.NET 3.5 SP1的MSChart吧,你找一下,很好用的,很强大的
可以考虑使用GDI自己绘图的
http://www.cnblogs.com/zhouxin/archive/2009/09/25/1573904.html你看看,里面有填充数据图的。
#region "填充chart"
80 Chart chart = myExcel.Charts.Add(Type.Missing, wsheet, Type.Missing, Type.Missing) as Chart;
81 chart.ChartType = Common.xlChartType;
82 Range chartrange = wsheet.get_Range(wsheet.Cells[4, 1], wsheet.Cells[4 + customs.Count, 1 + weaks.Count()]);
83 chart.SetSourceData(chartrange, XlRowCol.xlRows);
84 chart.HasTitle = true;
85 chart.ChartTitle.Text = "Detail Report -- Return";
86 chart.Location(XlChartLocation.xlLocationAsObject, plant);
87 float top = 200;
88 float.TryParse(wsheet.get_Range(wsheet.Cells[1, 1], wsheet.Cells[1, 1]).Top.ToString(), out top);
89 wsheet.Shapes.Item(1).IncrementTop(top );
90 wsheet.Shapes.Item(1).IncrementLeft(-450);
91 //wsheet.Shapes.Item(1).ScaleHeight(200,Type.Missing,Type.Missing);
92 // wsheet.Shapes.Item(1).ScaleWidth(300, Type.Missing, Type.Missing);
93 #endregion
用MSChart吧,很强大的!
Aspose.Cells 控件可以解决你的问题 ,去下载看看把。。。。。。。