System.Windows.Forms.DataVisualization.Charting.SeriesCollection.Add(string)

Here are the examples of the csharp api class System.Windows.Forms.DataVisualization.Charting.SeriesCollection.Add(string) taken from open source projects. By voting up you can indicate which examples are most useful and appropriate.

4 Examples 7

1. Example

Project: SEOMacroscope
Source File: MacroscopeBarChart.cs
View license
public void Update ( SortedDictionary<string,double> DataPoints )
    {

      double Max = 10;
      double Count = 1;
      
      this.BarChart.Series.Clear();
      
      foreach( string DataPointKey in DataPoints.Keys )
      {

        string SeriesName = DataPointKey;
        DataPoint DataPointItem = new DataPoint ();
        ChartArea Area;
  
        this.BarChart.Series.Add( name: SeriesName );

        this.BarChart.Series[ SeriesName ].ChartType = SeriesChartType.Column;

        this.BarChart.Series[ SeriesName ].LegendText = string.Format(
          "{0}: {1:0.00}",
          SeriesName,
          DataPoints[ DataPointKey ]
        );
        
        DataPointItem.AxisLabel = SeriesName;
        DataPointItem.SetValueXY( Count, DataPoints[ DataPointKey ] );      

        this.BarChart.Series[ SeriesName ].Points.Add( item: DataPointItem );

        if( DataPoints[ DataPointKey ] > Max )
        {
          Max = DataPoints[ DataPointKey ];
        }

        Area = this.BarChart.ChartAreas[ 0 ];
        Area.AxisY.Maximum = Max + 10;
        Area.AxisY.Minimum = 0;
        
        Count++;
        
      }

      this.BarChart.Invalidate();
            
    }

2. Example

Project: IocPerformance
Source File: ChartOutput.cs
View license
private static void CreateBenchmarkChart(string name, string filename, IEnumerable<BenchmarkResul/n ..... /n //View Source file for more details /n }

3. Example

Project: FloatingGlucose
Source File: FloatingGlucose.cs
View license
private Bitmap renderGlucoseChart(Color backColor, Color foreColor)
        {
            var w = th/n ..... /n //View Source file for more details /n }

4. Example

Project: PresentMonLauncher
Source File: BencherWindow.cs
View license
private void btn_ChartSelected_Click(object sender, EventArgs e)
        {
            // No point i/n ..... /n //View Source file for more details /n }