SciChart® the market leader in Fast WPF Charts, WPF 3D Charts, and now iOS Charting & Android Chart Components

Welcome to the SciChart Community Forums!

Please use the forums below to ask questions about SciChart. Take a moment to read our Question asking guidelines on how to ask a good question and our support policy

We also have a tag=SciChart on Stackoverflow.com where you can earn rep for your questions!

1
0

Hello, SciChart Team!
i have an issue using mouse drag event ( RubberBandXyZoomModifier, ZoomPanMidifier). the message says “NullReferenceException in SciChart.Charting.dll ” or “Thread.cs not found” from time to time.
after some experiments i figured out that the app starts to crush after i change XAxis type .
i have a simple mvvm user control used to display both arrays of double and datebound data, XAxes of SciChart Surfase is bound to an observable collection of IAxis elements. if i need to change chart type i clear this collection and create an axis of desired type (DateTimeAxisViewModel or NumericAxisViewModel). after that the series can be added, but zooming causes crash with nearly to no info.

i attached a solution, which lacks only scichart dlls in order to run (hopefully), Window_Loaded method has a commented line which changes chart type and makes app crush on zooming, would be nice if you checked it out.
Thanks in advance!
Alexander

Version
5.1
  • Alexander Volkov
    I get the same kind of exception when I add PointMarker to lines renderableseries viewmodels in ViewModelsFactory.New method. I really must have missed something crucial.
  • Andrew
    Thanks for the code to repro Alexander, we will take a look!
  • You must to post comments
1
0

Hello Alexander,

I’ve investigated your sample, and found out that the reason of crash is an XAxis with IsPrimaryAxis = false, we’re still investigating what makes it happened, but we have a quick suggestion for you:

You can try to set this property to “true” right before adding it to Axis.

We’re still working on this issue and we’re going to post you an update, when we have more information on it.

  • You must to post comments
Showing 1 result
Your Answer

Please first to submit.