System.Windows.Forms.DataVisualization.Charting.DataPointCollection.AddXY(double, double)

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

13 Examples 7

1. Example

Project: DatabaseBenchmark
Source File: LineChart.cs
View license
public void AddPoint(string series, long x, double y)
        {
            if (cache.Name != series)
                cache = chart1.Series.FindByName(series);

            // If you switch to logarithmic scale and the chart contains 0's, it will throw an exception.
            if (y == 0)
                y = Double.NaN;

            cache.Points.AddXY(x, y);
        }

2. Example

Project: DatabaseBenchmark
Source File: LineChart.cs
View license
public void AddPoint(string series, long x, double y)
        {
            if (cache.Name != series)
                cache = chart1.Series.FindByName(series);

            // If you switch to logarithmic scale and the chart contains 0's, it will throw an exception.
            if (y == 0)
                y = Double.NaN;

            cache.Points.AddXY(x, y);
        }

3. Example

Project: chummer5a
Source File: frmCareer.cs
View license
public void PopulateExpenseList()
        {
            lstKarma.Items.Clear();
            lstNuyen/n ..... /n //View Source file for more details /n }

4. Example

Project: SCJMapper-V2
Source File: BezierSeries.cs
View license
public void Invalidate( Control owner)
    {
      this.Points.Clear( );

      float[] cout = new float[PointsOnCurve*2];
      CalcCurve( cout );
      //bezier curve points
      this.ChartType = SeriesChartType.Line;

      for ( int i = 0; i < cout.Length; i = i + 2 ) {
        this.Points.AddXY( cout[i], cout[i + 1] );
      }

      owner.Invalidate( );
    }

5. Example

View license
private void HandleMetricsPaused(Metric metric)
        {
            if (!string.IsNullOrEmpty(metric.Series) && _seriesIndex.ContainsKey(metric.Series))
            {
                var series = _seriesIndex[metric.Series];
                series.Points.AddXY(xPosCounter++, 0.0d); //set the Y value to zero when we're paused
                while (series.Points.Count > MaxPoints) series.Points.RemoveAt(0);
                SetChartBoundaries();
            }
        }

6. Example

View license
private void HandleMetricsPaused(Metric metric)
        {
            if (!string.IsNullOrEmpty(metric.Series) && _seriesIndex.ContainsKey(metric.Series))
            {
                var series = _seriesIndex[metric.Series];
                series.Points.AddXY(xPosCounter++, 0.0d); //set the Y value to zero when we're paused
                while (series.Points.Count > MaxPoints) series.Points.RemoveAt(0);
                SetChartBoundaries();
            }
        }

7. Example

Project: akka-bootcamp
Source File: ChartingActor.cs
View license
private void HandleMetricsPaused(Metric metric)
        {
            if (!string.IsNullOrEmpty(metric.Series) && _seriesIndex.ContainsKey(metric.Series))
            {
                var series = _seriesIndex[metric.Series];
                if (series.Points == null) return; // means we're shutting down
                series.Points.AddXY(xPosCounter++, 0.0d); //set the Y value to zero when we're paused
                while (series.Points.Count > MaxPoints) series.Points.RemoveAt(0);
                SetChartBoundaries();
            }
        }

8. Example

Project: akka-bootcamp
Source File: ChartingActor.cs
View license
private void HandleMetricsPaused(Metric metric)
        {
            if (!string.IsNullOrEmpty(metric.Series) && _seriesIndex.ContainsKey(metric.Series))
            {
                var series = _seriesIndex[metric.Series];
                if (series.Points == null) return; // means we're shutting down
                series.Points.AddXY(xPosCounter++, 0.0d); //set the Y value to zero when we're paused
                while (series.Points.Count > MaxPoints) series.Points.RemoveAt(0);
                SetChartBoundaries();
            }
        }

9. Example

Project: SQLMonitor
Source File: Performance.cs
View license
private void AddPerformanceValue(DateTime timeStamp, Series serie, long value)
        {
            var current = timeStamp.ToOADate();

            if (current < chPerformance.ChartAreas[0].AxisX.Minimum)
                serie.Points.Clear();

            serie.Points.AddXY(current, value);
            //Serie.Points[Serie.Points.Count - 1].LabelFormat = "HH:MM:SS";

            if (!chkShowPerformanceHistory.Checked)
            {
                var removeBefore = timeStamp.AddSeconds(-60).ToOADate();
                while (serie.Points[0].XValue < removeBefore)
                {
                    serie.Points.RemoveAt(0);
                }
                chPerformance.ChartAreas[0].AxisX.Minimum = serie.Points[0].XValue;
                chPerformance.ChartAreas[0].AxisX.Maximum = DateTime.FromOADate(serie.Points[0].XValue).AddMinutes(1).ToOADate();
            }

            chPerformance.Invalidate();
        }

10. 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 }

11. Example

Project: OsEngine
Source File: ChartPainter.cs
View license
private void PaintLikeLine(List<decimal> values, Color color, string nameSeries)
        {
   /n ..... /n //View Source file for more details /n }

12. Example

Project: OsEngine
Source File: ChartPainter.cs
View license
private void PaintLikeColumn(List<decimal> values, Color colorUp, Color colorDown, string name/n ..... /n //View Source file for more details /n }

13. Example

Project: Legends-Viewer
Source File: ChartControl.cs
View license
private List<Series> GenerateSeries(ChartOption option, string command = "")
        {
       /n ..... /n //View Source file for more details /n }