Graph drawn with VS2003-GDI
Graph
DrawChart. PolyLine chart4 = new DrawChart. PolyLine ("linear regression", 800,320, System. Drawing. Color. FromArgb (241,241,241 ));
Chart4.BindValue ("A", 232.33f );
Chart4.BindValue ("B", 83.30f );
Chart4.BindValue ("C", 200f );
Chart4.BindValue ("D", 100f );
Chart4.FilePath = "TempImage ";
Chart4.FileName = fileName + "chart4 ";
Chart4.FontName = "Arial ";
Chart4.Precision = 2;
Chart4.Distance = 40;
Chart4.Scale = 50f;
Chart4.ShowTip = true;
Chart4.PointDiameter = 2f;
Chart4.LineWidth = 2f;
Chart4.LineColor = Color. Green;
Chart4.PointColor = Color. Red;
// Chart2.DrawChart ();
Chart4.ID = "SADADA ";
Panel1.Controls. Add (chart4 );
Bar Chart drawn with VS2003-GDI
Bar Chart
DrawChart. ArrayHistogram chart3 = new DrawChart. ArrayHistogram ("linear regression", 800,320, System. Drawing. Color. FromArgb (241,241,241 ));
Chart3.BindValue ("A", 232.33f );
Chart3.BindValue ("B", 83.30f );
Chart3.BindValue ("C", 200f );
Chart3.BindValue ("D", 100f );
Chart3.FilePath = "TempImage ";
Chart3.ColorList = colorList;
Chart3.TypeNameList = TypeNameList;
Chart3.FileName = fileName + "chart3 ";
Chart3.FontName = "Arial ";
Chart3.Precision = 2;
Chart3.Distance = 40;
Chart3.Scale = 50f;
Chart3.ShowTip = true;
Chart3.IsGradient = true;
Chart3.ID = "SADADA ";
Panel1.Controls. Add (chart3 );
Histogram drawn with VS2003-GDI
Histogram
System. Random rd = new Random ();
Color cr = Color. FromArgb (126 );
Color [] colorList = new Color [] {Color. fromArgb (41, 83,206), Color. fromArgb (155,155, 0), Color. fromArgb (1, 93,124,124), Color. fromArgb (180, 73, 0 )};
String [] TypeNameList = new string [] {"T1", "T2", "T3", "T4 "};
String fileName = DateTime. Now. ToString ("yyyyMMddHHss") + rd. Next (2000,888 8888). ToString () + ". gif ";
DrawChart. DrawHistogram chart2 = new DrawChart. DrawHistogram ("linear regression", 800,420, System. Drawing. Color. FromArgb (241,241,241 ));
Chart2.BindValue ("A", new float [] {0.3322f, 0.1670f, 0.2508f, 0.2500f });
Chart2.BindValue ("B", new float [] {0.1000f, 0.1002f, 0.1998f, 0.600f });
Chart2.BindValue ("C", new float [] {0.1f, 0.25f, 0.0f, 0.65f });
Chart2.BindValue ("D", new float [] {0.205f, 0.3f, 0.0f, 0.495f });
Chart2.FilePath = "TempImage ";
Chart2.ColorList = colorList;
Chart2.TypeNameList = TypeNameList;
Chart2.FileName = fileName;
Chart2.FontName = "Arial ";
Chart2.Precision = 2;
Chart2.Distance = 40;
Chart2.Scale = 1f;
Chart2.ShowTip = true;
Chart2.IsPercent = true;
Chart2.IsGradient = true;
// Chart2.DrawChart ();
Chart2.ID = "SSS ";
Panel1.Controls. Add (chart2 );
It is expected that VS2003 and later versions cannot be used.
The Code is as follows:
/Files/woody-wu/Chart.rar