I am having a random NullReferenceException after a certain set of datapoints is mapped on the chart. I.e. bigger range of dates.
Any mouse move after this, causing the exception it seems.
using InfragisticsWPF3.Chart.v11.1
Stack Trace is
" at Infragistics.Windows.Chart.PlottingPane.OnMouseMove(MouseEventArgs e)\r\n at System.Windows.UIElement.OnMouseMoveThunk(Object sender, MouseEventArgs e)\r\n
How can I track this down? Any help would be appreciated.
Thanks
Hello David,
I am just checking if you got this worked out or you still require any assistance or clarification on the matter.
I have modified the sample I sent you before, so now it has the functionality you want. Basically instead of setting the DataPoint’s Value and Label I add ChartParameters, because the ScatterLine demands two integer values. Please let me know if this helps you or you need further assistance on this matter.
Looking forward for your reply.
Looks like that's good... I would say one minor difference is I'm using a ScatterLine in my application. When I tried to change the type to Scatter Line it seemed to not display anything then.
Is there a trick/Difference to the way a scatterline needs to be setup?
I have created a sample project for you following your scenario and everything seems to work ok on my side. If the sample doesn’t satisfies all your needs feel free to modify it, so it reproduces your behavior and send it back to me for further investigation.
If I limit the data to 199 rows it's fine and the mouse movement causes no nullreference excpetion.
I've tried switching to AutoRange=false and setting the unit and min/max but then it shows no plotted points.
I think it's related to the fact I'm programatically adding the series into the chart.
If I do this like examples show with series defined and datasource and mapping in the xaml its working.
Something about having a dynamic number of series to show seems to be causing it grief and I haven't been able to track it down.
Have you done anything with creating series in code and adding to the xamchart?