07-09-2014 10:49 AM
this is my test code:
ChartCollection<DateTime, double> chartCollection = new ChartCollection<DateTime, double>();
chartCollection.Append(dateTimeList, doubleList); //dateTimeList and doubleList has 500000 points
graph.DataSource = chartCollection ;
but a System.OutOfMemoryException throwed in mscorlib.dll when I zoom the graph.
07-10-2014
09:31 AM
- last edited on
11-20-2024
09:01 AM
by
Content Cleaner
Based on the data types involved, I believe you are hitting the same issue as the question WPF graph AxisDateTime crash. To avoid the crash, change the Mode
of the MajorDivisions
and MinorDivisions
of your axes. For example, the XAML below reduces the number of major divisions to three and hides the minor divisions:
<ni:AxisDateTime Orientation="Horizontal" MinorDivisions="{x:Null}">
<ni:AxisDateTime.MajorDivisions>
<ni:RangeLabeledDivisions Mode="Count: 3" />
</ni:AxisDateTime.MajorDivisions>
</ni:AxisDateTime>
08-11-2015
01:07 PM
- last edited on
11-20-2024
09:02 AM
by
Content Cleaner
Just wanted to let you know this issue (#452914) was fixed in the Measurement Studio 2015 release.