Measurement Studio for .NET Languages

cancel
Showing results for 
Search instead for 
Did you mean: 

WPF graph - show multiple plots with same x axis, each plot has own y axis.

Solved!
Go to solution
Solution
Accepted by topic author Dudiamar

One thing to keep in mind is that these events are synchronous. Thus, you are probably seeing the following:

  1. Graph 1 updates
  2. Range Cursor receives update notification
  3. Graph 2 updates

 

In which case, looking for data when the range cursor updates will only show the update to graph 1, not graph 2

 

There are a couple of different ways to solve this:

  • Update the graph without the range cursor before the graph with it
  • Use Dispatcher.BeginInvoke or DispatcherTimer when the range cursor's event is raised so that (3) above happens before you look up the data

 

 

0 Kudos
Message 11 of 12
(1,945 Views)

I used the Dispatcher.BeginInvoke and it indeed solved the problem.

Thanks!!

0 Kudos
Message 12 of 12
(1,875 Views)