This thread looks to be a little on the old side and therefore may no longer be relevant. Please see if there is a newer thread on the subject and ensure you're using the most recent build of any software if your question regards a particular product.
This thread has been locked and is no longer accepting new posts, if you have a question regarding this topic please email us at support@mindscape.co.nz
|
We recently updated our applications to the new WPF Elements 6.0 version and are having a problem with our charts. When you zoom in by selecting an area of the chart the graph data disappears and when you attempt to zoom out by using the mouse wheel we are getting the following exception. We have tried both the official 6.0 release and the latest nightly (5/3) build and both seem to have the same issue. We have made no other changes to code other than updating to the new version. Thanks, Clayton Type: System.ArgumentException - Message: 'NaN' is not a valid value for property 'X1'. at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, Boolean coerceWithCurrentValue, OperationType operationType, Boolean isInternal) at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value) at System.Windows.Shapes.Line.set_X1(Double value) at Mindscape.WpfElements.Charting.PointSeriesBase.#Auc(Int32 index, Point currentPoint, Point nextPoint, Brush brush) at Mindscape.WpfElements.Charting.PointSeriesBase.#Auc(Int32 index, Brush brush) at Mindscape.WpfElements.Charting.LineSeries.#qZb(Int32 index) at Mindscape.WpfElements.Charting.DataSeries.#R0b() at Mindscape.WpfElements.Charting.DataSeries.BuildChartCore() at Mindscape.WpfElements.Charting.DataSeries.#7T() at Mindscape.WpfElements.Charting.Chart.#7T() at System.Windows.Threading.ExceptionWrapper.InternalRealCall(Delegate callback, Object args, Int32 numArgs) at MS.Internal.Threading.ExceptionFilterHelper.TryCatchWhen(Object source, Delegate method, Object args, Int32 numArgs, Delegate catchHandler) TargetSite: Void SetValueCommon(System.Windows.DependencyProperty, System.Object, System.Windows.PropertyMetadata, Boolean, Boolean, System.Windows.OperationType, Boolean) |
|
|
Hello Clayton Thanks for pointing this out! This issue will be resolved in the next nightly build. Jason Fauchelle |
|
|
Works great now... thanks for your quick resolution! |
|
|
Thanks for fixing the zooming problem, however we seem to still be having another similar issue. We get the same error ('NaN' is not a valid value for property 'X1') when we are adding a line series to the graph that only has one entry... any idea on this? Thanks, Clayton |
|
|
Hello Clayton Unfortunately I have not been able to reproduce this issue. Could you please send a simple repro project so we can track down this issue. Jason Fauchelle |
|
|
Thanks for looking at this Jason. I've attached a small project which demonstrates the problem.
|
|
|
Hello Clayton Thanks for the repro project. A solution to this issue will be available in the next nightly build. Jason Fauchelle |
|
|
Works great... thank you very much |
|