Jump to content
Software FX Community

Exception with Axis Logbase and Zoom


MMCCPaulEden
 Share

Recommended Posts

Hi

Be have found a condition that will generate a crashing exception in ChartFX.

If you  set

  Chart.AxisY.LogBase = 10

  Chart.Zoom.Mode = ZoomMode.Selection;

  Chart.Zoom.Style = ZoomStyle.Map;

  Chart.Zoom.ViewStyle = ZoomViewStyle.Blur;

and then attempt to use the Map Zoom function when the User selects the area to zoom to, the following exception occurrs with the ChartFX dlls and is not trappable:

'NaN' is not a valid value for property 'Maximum'.

 at System.Windows.DependencyObject.SetValueCommon(DependencyProperty dp, Object value, PropertyMetadata metadata, Boolean coerceWithDeferredReference, OperationType operationType, Boolean isInternal)

at System.Windows.DependencyObject.SetValue(DependencyProperty dp, Object value)

at System.Windows.Controls.Primitives.RangeBase.set_Maximum(Double value)

at ChartFX.WPF.Axis.f()

at ChartFX.WPF.Axis.b(ScaleInfoBase A_0, Double A_1)

at ChartFX.WPF.Axis.a(ScaleInfoBase A_0, Double A_1, Boolean A_2)

at ChartFX.WPF.Axis.a(ScaleInfoBase A_0, Double A_1, Boolean A_2, Boolean A_3, Boolean A_4, Double A_5)

at ChartFX.WPF.Axis.b(ScaleInfoBase A_0, Double A_1, Boolean A_2, Boolean A_3, Boolean A_4, Double A_5)

Thanks

Paul Eden

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...