在数据库中取值画出曲线图,该怎么处理

在数据库中取值画出曲线图
好心的人们知道怎么做的,可以把发送电子邮件给我,要完整的代码最好有说明了
shiyudir@163.com

------解决方案--------------------
利用owc private void DrawChart() { // 在此处放置用户代码以初始化页面 //创建ChartSpace对象来放置图表 OWC.ChartSpace objCSpace = new OWC.ChartSpaceClass (); //在ChartSpace对象中添加图表,Add方法返回chart对象 OWC.WCChart objChart = objCSpace.Charts.Add(0); //指定图表的类型。类型由OWC.ChartChartTypeEnum枚举值得到 objChart.Type = OWC.ChartChartTypeEnum.chChartTypeColumnClustered; //指定图表是否需要图例 objChart.HasLegend = true; //给定标题 objChart.HasTitle = true; objChart.Title.Caption= "上半年分布图 "; //给定x,y轴的图示说明 objChart.Axes[0].HasTitle = true; objChart.Axes[0].Title.Caption = "Y : 数量 "; objChart.Axes[1].HasTitle = true; objChart.Axes[1].Title.Caption = "X : 月份 "; //计算数据 /*categories 和 values 可以用tab分割的字符串来表示*/ string strSeriesName = "图例 1 "; string strCategory = "1 " + '\t ' + "2 " + '\t ' + "3 " + '\t '+ "4 " + '\t ' + "5 " + '\t ' + "6 " + '\t '; string strValue = "9 " + '\t ' + "8 " + '\t ' + "4 " + '\t '+ "10 " + '\t ' + "12 " + '\t ' + "6 " + '\t '; //添加一个series objChart.SeriesCollection.Add(0); //给定series的名字 objChart.SeriesCollection[0].SetData (OWC.ChartDimensionsEnum.chDimSeriesNames, + (int)OWC.ChartSpecialDataSourcesEnum.chDataLiteral, strSeriesName); //给定分类 objChart.SeriesCollection[0].SetData (OWC.ChartDimensionsEnum.chDimCategories, + (int)OWC.ChartSpecialDataSourcesEnum.chDataLiteral, strCategory); //给定值 objChart.SeriesCollection[0].SetData (OWC.ChartDimensionsEnum.chDimValues, (int)OWC.ChartSpecialDataSourcesEnum.chDataLiteral, strValue); //创建GIF文件的相对路径. string strRelativePath = "./test.gif "; //输出成GIF文件. string strAbsolutePath = Server.MapPath(strRelativePath); objCSpace.ExportPicture(strAbsolutePath, "GIF ", 600, 350); //把图片添加到placeholder. string strImageTag = " <IMG SRC= ' " + strRelativePath + " '/> "; ChartHolder.Controls.Add(new LiteralControl(strImageTag)); }
------解决方案--------------------
用OWC office组件
------解决方案--------------------
http://blog.csdn.net/ChengKing/category/146827.aspx
------解决方案--------------------
已经发了,查收下
------解决方案--------------------
在MSDN中看看GDI+绘图怎么实现,或者买本GDI+的书看看,就知道了。
------解决方案--------------------
http://www.wave12.com