Group: Forum Members
Last Active: 8 Years Ago
Posts: 23,
Visits: 6
|
Hi! I found a bug in my app, but probably you would be interested in too. I was setting wrong values to the view range and it freeze up the application. For example this simple code produces the effect:
public Form1() { InitializeComponent();
var nevronChart = new NCartesianChart(); nevronChart.BoundsMode = BoundsMode.Stretch; nevronChart.ContentAlignment = ContentAlignment.BottomRight; nevronChart.Dock = DockStyle.None; nChartControl1.Panels.Add(nevronChart);
var axisX = nevronChart.Axis(StandardAxis.PrimaryX); var axisY = nevronChart.Axis(StandardAxis.PrimaryY); axisX.View = new NRangeAxisView(new NRange1DD(double.MinValue,10), true, true); axisY.View = new NRangeAxisView(new NRange1DD(1, 10), true, true);
nChartControl1.Refresh(); }
i.e double.MinValue is a problem for nevron. Of course this value is invalid but it is better to do something else then freezing up the app.
|