public void Add(DataSeries ds)
 {
     dataSeriesList.Add(ds);
     if (ds.SeriesName == "")
     {
         ds.SeriesName = "DataSeries" + dataSeriesList.Count.ToString();
     }
 }
 public void Insert(int dataSeriesIndex, DataSeries ds)
 {
     dataSeriesList.Insert(dataSeriesIndex, ds);
     if (ds.SeriesName == "")
     {
         dataSeriesIndex = dataSeriesIndex + 1;
         ds.SeriesName = "DataSeries" + dataSeriesIndex.ToString();
     }
 }
예제 #3
0
 private void AddData(Graphics g)
 {
     float x, y;
     // Add first data series:
     dc.DataSeriesList.Clear();
     ds = new DataSeries();
     ds.BarStyle.BorderColor = Color.Red;
     //ds.IsSingleColorMap = 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);
 }