This happened in EndUpdate in a Scroll event handler of a scrollbar that is scrolling a barseries based chart:
System.NullReferenceException occurred
Message=Object reference not set to an instance of an object.
Source=Arction.WPF.LightningChartUltimate
StackTrace:
at Arction.WPF.LightningChartUltimate.LightningChartUltimate.RGC(AxisX A, KD B, Double C, Double F, Int32 G, Rectangle H)
InnerException:
Code: Select all
// If the min or max was changed, update the chart
if (xMin != _chart.ViewXY.XAxes[0].Minimum || xMax != _chart.ViewXY.XAxes[0].Maximum)
{
_chart.ViewXY.XAxes[0].SetRange(xMin, xMax);
}
_chart.EndUpdate(); <<< Exception here