利用TeeChar生成统计图的使用方法(一、动态生成统计图)(2) AnalyLine2.ColorEach=false; AnalyLine2.Brush.Color = System.Drawing.Color.Green; for(int x=0;x<4;x++) { AnalyLine2.Add(x,"第"+Convert.ToString(x+1)+"次"); } ch2.Series.Add(AnalyLine2); ch2.Width=300; ch2.Height=160; ch2.EXPort.Image.PNG.Save(Server.MapPath(ComFunction.StatImgPath+"ScoreAnalyse"+j.ToString()+".png")); tr=new TableRow(); TableCell tc=new TableCell(); tc.HorizontalAlign=HorizontalAlign.Center; tc.Text="<img src=\""+ComFunction.StatImgPath+"ScoreAnalyse"+j.ToString()+".png\" border=0 width=300 height=160>"; tr.Cells.Add(tc); tbStatImg.Rows.Add(tr);
先要下载一个破解的免费的TeeChar安装,然后引用类。就可以了。