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
|
I have an application, where we graph analog and digital input data, each on a separate graph (due to scaling issues with large axis ranges, etc). Is there a way that I'm missing to be able to synchronize cursor movement between a number of graphs displayed to the user (each with the same x axis), so that the pop-up with the value is displayed on all the graphs? I was able to do easily synchronize the zooming with the zoom event, but as far as I can tell, there's no way to set the cursor position. Thanks for any help, screenshot of sample is attached. |
|
|
Hello Adam I'm guessing you are using the TrackingElement control provided in the sample explorer. Since you have all the code for this, you'll be able to make so changes to achieve this effect. In your application, you will need to listen to the ChartMouseMove, ChartMouseEnter and ChartMouseLeave events of each chart. When one of these events of one of the charts gets raised, find the instances of TrackingElement for each chart. Now, if you make the AddElements and UpdateElements methods of the TrackingElement class public, you will be able to call these methods whenever the mouse moves on one of the charts. So when the mouse enters one of the charts, you could call the AddElements method on the TrackingElement of the other 2 charts. Similarly when the mouse moves over a chart, call the UpdateElements method on the other 2 TrackingElements. You will also need to add a RemoveElements method which will simply clear the Children collection. Try this out and let me know if you need any help. Jason Fauchelle |
|
|
Honestly, I completely forgot about that TrackingElement class, I was only thinking of the Chart object itself. Great idea, that worked perfectly. Thanks for the help and quick response! |
|