public AddPoint ( System.Drawing.CGPoint pt ) : void | ||
pt | System.Drawing.CGPoint | |
Résultat | void |
void AddData(Graphics g) { float x, y; // Add first data series: dc.DataSeriesList.Clear(); ds = new DataSeries(); ds.BarStyle.BorderColor = Color.Red; //ds.IsColorMap = true; ds.IsColorMap = true; ds.CMap = cm.Jet(); for (int i = 0; i < 5; i++) { x = i + 1; y = 2.0f * x; ds.AddPoint(new CGPoint(x, y)); } dc.Add(ds); }
private void AddData(Graphics g) { float x, y; // Add first data series: dc.DataSeriesList.Clear(); ds = new DataSeries(); ds.BarStyle.BorderColor = Color.Red; //ds.IsColorMap = true; ds.IsColorMap = true; ds.CMap = cm.Jet(); for (int i = 0; i < 5; i++) { x = i + 1; y = 2.0f * x; ds.AddPoint(new PointF(x, y)); } dc.Add(ds); }