原創(chuàng)|其它|編輯:郝浩|2012-10-15 16:39:43.000|閱讀 349 次
概述:Teechart生成 成績(jī)分析圖 ,提供源碼,提供大家參考
# 界面/圖表報(bào)表/文檔/IDE等千款熱門軟控件火熱銷售中 >>
今天利用Teechart生成成績(jī)分析圖,源代碼主要片段先發(fā)上來,由于時(shí)間關(guān)系就沒有具體的標(biāo)注了。
下面就是用Teechart生成 成績(jī)分析圖的源代碼:
WebChart wc=new WebChart(); wc.Visible=true; Steema.TeeChart.Chart ch2=wc.Chart; MemoryStream tmpChart2=new MemoryStream(); ch2.Header.Text="總分對(duì)比"; ch2.Header.Font.Bold=false; ch2.Header.Font.Color=Color.Red; ch2.Header.Font.Size=10; //控制面板的背景色 ch2.Panel.Brush.Gradient.EndColor = System.Drawing.Color.FromArgb(0xFF,0xEE,0xF2); ch2.Panel.Brush.Gradient.StartColor = System.Drawing.Color.FromArgb(0xFE,0xCB,0xD7); ch2.Panel.Brush.Gradient.Visible = true; ch2.Aspect.View3D = false; //外觀 ch2.Aspect.Elevation = 315; ch2.Aspect.Orthogonal = false; ch2.Aspect.Perspective = 0; ch2.Aspect.Rotation = 360; ch2.Invalidate(); //設(shè)置線條 Line AnalyLine2=new Line(); AnalyLine2.OutLine.Color = System.Drawing.Color.FromArgb(((System.Byte)(255)), ((System.Byte)(255)), ((System.Byte)(0))); AnalyLine2.ColorEachLine=false; AnalyLine2.OutLine.Visible = true; AnalyLine2.Pointer.Visible = true; 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);
本站文章除注明轉(zhuǎn)載外,均為本站原創(chuàng)或翻譯。歡迎任何形式的轉(zhuǎn)載,但請(qǐng)務(wù)必注明出處、不得修改原文相關(guān)鏈接,如果存在內(nèi)容上的異議請(qǐng)郵件反饋至chenjj@fc6vip.cn
文章轉(zhuǎn)載自:博客園