Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Raise Exception when displaying large amount of Points #18

Open
ShannonZ opened this issue Apr 23, 2018 · 0 comments
Open

Raise Exception when displaying large amount of Points #18

ShannonZ opened this issue Apr 23, 2018 · 0 comments
Labels

Comments

@ShannonZ
Copy link

ShannonZ commented Apr 23, 2018

namespace SimpleDemo
{
    using OxyPlot;
    using OxyPlot.Axes;
    using OxyPlot.Series;
    using System;

    public class MainViewModel
    {
        public MainViewModel()
        {
            var model = new PlotModel { Title = "Hello SharpDX from WPF" };
            model.Axes.Add(new LinearAxis { Position = AxisPosition.Bottom });
            model.Axes.Add(new LinearAxis { Position = AxisPosition.Left, Title="Left Axis Title" });
            var lineSeries = new LineSeries { Title = "LineSeries", MarkerType = MarkerType.Circle };
            Random rn = new Random();
            for (int i = 0; i < **1e5**; i++)
            {
                lineSeries.Points.Add(new DataPoint(i, rn.NextDouble()));
            }
            
            model.Series.Add(lineSeries);
            this.Model = model;
        }

        public PlotModel Model { get; private set; }
    }
}
@objorke objorke changed the title Raise Exception when dislplaying large amount of Points Raise Exception when displaying large amount of Points Feb 26, 2020
@objorke objorke added the bug label Feb 26, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants