System.Windows.Forms.DataVisualization.Charting.DataPointCollection.AddXY(object, params object[])

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

32 Examples 7

1. Example

Project: OsEngine
Source File: ChartPainter.cs
View license
public void PaintOneLine(Series mySeries, List<Candle> candles, ChartAlertLine line, Color col/n ..... /n //View Source file for more details /n }

2. Example

Project: OsEngine
Source File: TesterServerUi.xaml.cs
View license
private void PaintProfitOnChart()
        {
            List<decimal> portfolio = _server.ProfitArray;

            if (portfolio == null || portfolio.Count == 0)
            {
                return;
            }

            for (int i = 0; i < portfolio.Count; i++)
            {
                if (portfolio[i] != 0)
                {
                    _chartReport.Series[0].Points.AddXY(i, portfolio[i]);

                    if (i == 0)
                    {
                        _chartReport.Series[1].Points.AddXY(i,  portfolio[i] - 1000000);
                        continue;
                    }

                    _chartReport.Series[1].Points.AddXY(i, portfolio[i] - portfolio[i-1]);

                    if (portfolio[i] - portfolio[i - 1] > 0)
                    {
                        _chartReport.Series[1].Points[_chartReport.Series[1].Points.Count - 1].Color = Color.DeepSkyBlue;
                    }
                    else
                    {
                        _chartReport.Series[1].Points[_chartReport.Series[1].Points.Count - 1].Color = Color.DarkRed;
                    }
                }
            }
        }

3. Example

Project: FutBud
Source File: FormChart.cs
View license
private void FormChart_Load(object sender, EventArgs e)
        {
            var creditsSeries = new System.Windows.Forms.DataVisualization.Charting.Series
            {
                Name = "Credits",
                BorderWidth = 3,
                Color = System.Drawing.Color.CornflowerBlue,
                IsVisibleInLegend = false,
                IsXValueIndexed = true,
                ChartType = SeriesChartType.Line
            };
            try
            {
                foreach (var value in _creditsHistoryList)
                {
                    creditsSeries.Points.AddXY(value[0], value[1]);
                }
                chart.Series.Add(creditsSeries);
            }
            catch (Exception)
            {
                // ignored
            }
        }

4. Example

Project: PdfReport
Source File: MSChartHelper.cs
View license
public void AddXY(object xValue, params object[] yValue)
        {
            _chart.Series[0].Points.AddXY(xValue, yValue);
        }

5. Example

Project: OsEngine
Source File: ChartPainter.cs
View license
private void PaintLast300(List<Trade> history)
        {
            Series tradeSeries = new /n ..... /n //View Source file for more details /n }

6. Example

Project: OsEngine
Source File: ChartPainter.cs
View license
private void PaintLikePointLast(List<decimal> values, string nameSeries)
        {
            Series mySeries = FundSeriesByNameSafe(nameSeries);

            decimal lastPoint = values[values.Count - 1];
            mySeries.Points.AddXY(values.Count - 1, lastPoint);
        }

7. Example

Project: ARKStatsExtractor
Source File: StatGraphs.cs
View license
public void setGraph(int sI, int statIndex, int wildLevels, int domLevels, bool tamed, double TE, double imprinting)
        {
            if (sI >= 0 && sI < Values.V.speciesNames.Count && statIndex >= 0 && statIndex < 7)
            {
                CreatureStat stat = Values.V.species[sI].stats[statIndex];
                serie.Points.Clear();
                serie.Points.AddXY("Base", stat.BaseValue);
                serie.Points.AddXY("Wild", Stats.calculateValue(sI, statIndex, wildLevels, 0, false, 0, 0));
                serie.Points.AddXY("Tamed", Stats.calculateValue(sI, statIndex, wildLevels, 0, true, TE, 0));
                serie.Points.AddXY("Dom", Stats.calculateValue(sI, statIndex, wildLevels, domLevels, true, TE, 0));
                serie.Points.AddXY("Impr", Stats.calculateValue(sI, statIndex, wildLevels, domLevels, true, TE, imprinting));
            }

        }

8. Example

Project: OsEngine
Source File: ChartPainter.cs
View license
public void PaintPoint(PointElement point)
        {
            if (point.Y <= 0)
            {
                return;
            }
            if (_myCandles == null)
            {
                return;
            }

            int index = _myCandles.FindIndex(candle => candle.TimeStart >= point.TimePoint);

            if (index < 0 || index >= _myCandles.Count)
            {
                return;
            }

            Series newSeries = new Series(point.UniqName + "Point");
            newSeries.ChartType = SeriesChartType.Point;
            newSeries.Color = point.Color;
            newSeries.ChartArea = point.Area;
            newSeries.YAxisType = AxisType.Secondary;
            newSeries.XAxisType = AxisType.Primary;
            newSeries.MarkerStyle = point.Style;
            newSeries.MarkerSize = point.Size;

            newSeries.Points.AddXY(index, point.Y);

            PaintSeriesSafe(newSeries);
        }

9. Example

Project: OsEngine
Source File: ChartPainter.cs
View license
private void PaintLikeLineLast(List<decimal> values, string nameSeries)
        {
            Series mySeries = FundSeriesByNameSafe(nameSeries);

            decimal lastPoint = values[values.Count - 1];
            mySeries.Points.AddXY(mySeries.Points.Count, lastPoint);

            RePaintRightLebels();
        }

10. Example

Project: OsEngine
Source File: ChartPainter.cs
View license
private void PaintLikeColumnLast(List<decimal> values, string nameSeries, Color colorUp, Color colorDown)
        {

            Series mySeriesUp = FundSeriesByNameSafe(nameSeries);
            decimal lastPointUp = values[values.Count - 1];
            mySeriesUp.Points.AddXY(mySeriesUp.Points.Count, lastPointUp);

            if (values[values.Count - 1] > values[values.Count - 2])
            {
                if (colorUp != Color.FromArgb(0, 0, 0, 0))
                {
                    mySeriesUp.Points[mySeriesUp.Points.Count - 1].Color = colorUp;
                }
            }
            else
            {
                if (colorDown != Color.FromArgb(0, 0, 0, 0))
                {
                    mySeriesUp.Points[mySeriesUp.Points.Count - 1].Color = colorDown;
                }
            }
        }

11. Example

Project: OsEngine
Source File: ChartPainter.cs
View license
public void PaintHorisiontalLineOnArea(LineHorisontal lineElement)
        {
            if (lineEle/n ..... /n //View Source file for more details /n }

12. Example

Project: OsEngine
Source File: TesterServerUi.xaml.cs
View license
private void PaintLastPointOnChart()
        {
            if (_chartReport.InvokeRequired)
        /n ..... /n //View Source file for more details /n }

13. Example

Project: OsEngine
Source File: ChartPainter.cs
View license
private void PaintPositions(List<Position> deals)
        {
            try
            {
    /n ..... /n //View Source file for more details /n }

14. Example

Project: OsEngine
Source File: JournalUi.xaml.cs
View license
private void PaintProfitOnChart(List<Position> positionsAll)
        {
            if (!TabBot/n ..... /n //View Source file for more details /n }

15. Example

View license
private void HandleMetrics(Metric metric)
        {
            if (!string.IsNullOrEmpty(metric.Series) && _seriesIndex.ContainsKey(metric.Series))
            {
                var series = _seriesIndex[metric.Series];
                series.Points.AddXY(xPosCounter++, metric.CounterValue);
                while(series.Points.Count > MaxPoints) series.Points.RemoveAt(0);
                SetChartBoundaries();
            }
        }

16. Example

View license
private void HandleMetrics(Metric metric)
        {
            if (!string.IsNullOrEmpty(metric.Series) && _seriesIndex.ContainsKey(metric.Series))
            {
                var series = _seriesIndex[metric.Series];
                series.Points.AddXY(xPosCounter++, metric.CounterValue);
                while(series.Points.Count > MaxPoints) series.Points.RemoveAt(0);
                SetChartBoundaries();
            }
        }

17. Example

View license
private void HandleMetrics(Metric metric)
        {
            if (!string.IsNullOrEmpty(metric.Series) && _seriesIndex.ContainsKey(metric.Series))
            {
                var series = _seriesIndex[metric.Series];
                series.Points.AddXY(xPosCounter++, metric.CounterValue);
                while(series.Points.Count > MaxPoints) series.Points.RemoveAt(0);
                SetChartBoundaries();
            }
        }

18. Example

Project: akka-bootcamp
Source File: ChartingActor.cs
View license
private void HandleMetrics(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++, metric.CounterValue);
                while(series.Points.Count > MaxPoints) series.Points.RemoveAt(0);
                SetChartBoundaries();
            }
        }

19. Example

Project: akka-bootcamp
Source File: ChartingActor.cs
View license
private void HandleMetrics(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++, metric.CounterValue);
                while(series.Points.Count > MaxPoints) series.Points.RemoveAt(0);
                SetChartBoundaries();
            }
        }

20. Example

Project: akka-bootcamp
Source File: ChartingActor.cs
View license
private void HandleMetrics(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++, metric.CounterValue);
                while(series.Points.Count > MaxPoints) series.Points.RemoveAt(0);
                SetChartBoundaries();
            }
        }

21. Example

Project: OsEngine
Source File: ChartPainter.cs
View license
private void AddCandleInArray(List<Candle> history, int index)
        {
            Series ca/n ..... /n //View Source file for more details /n }

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

23. Example

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

24. Example

Project: Bender
Source File: BenchmarkChart.cs
View license
public static void SaveSummary(IEnumerable<Benchmarks.Benchmark> results, string path, bool co/n ..... /n //View Source file for more details /n }

25. Example

View license
public void CreateSummaryReport(Palmmedia.ReportGenerator.Parser.Analysis.SummaryResult summaryResul/n ..... /n //View Source file for more details /n }

26. Example

View license
public void CreateSummaryReport(Palmmedia.ReportGenerator.Parser.Analysis.SummaryResult summaryResul/n ..... /n //View Source file for more details /n }

27. Example

Project: OsEngine
Source File: ChartPainter.cs
View license
private void PaintAllCandles(List<Candle> history)
        {
            Series candleSeries =/n ..... /n //View Source file for more details /n }

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

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

30. Example

Project: IocPerformance
Source File: ChartOutput.cs
View license
private static void CreateOverviewChart(IEnumerable<IBenchmark> benchmarks, IEnumerable<Ben/n ..... /n //View Source file for more details /n }

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

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