7 Answers, 1 is accepted
The track-info behavior is designed to work much as a tool-tip. It reacts only when the mouse is over the chart. Thus you can not start it with code, it will only display if the mouse is on top of the chart. So, unfortunately you can not achieve this programatically.
I have two suggestions for you:
1. You can use a single chart view with two vertical axes - one for the two series from the top chart (in your snapshot) and a second one for the two series from the bottom chart. This way you can keep the track info behavior and show info for all 4 series in the track ball.
2. Do not show the track ball at all. Use the TrackInfoUpdated event to only find out which category the mouse is over. Then show the required information somewhere else, say, on the right of the charts. (this would involve custom C# code and XAML)
Let us know how it goes.
the Telerik team
i need to implement the same requirement in my project.
You can check our sdk examples here. The provided example uses a utilities class and demonstrates one possible approach to using annotations that mimic synced track-balls.
This approach is valid for the WPF and Silverlight chart only. The WinForms chart has a different API and does not yet have annotations (soon to be). However the WinForms trackball has a MoveTrackball method which may get you what you want. If you need information about this I will ask that you open a new ticket with a product RadChartView for WindowsForms. This is a WPF forum and we prefer to keep questions separated. Thank you for understanding.
Check out the Telerik Platform - the only platform that combines a rich set of UI tools with powerful cloud services to develop web, hybrid and native mobile apps.
I am using TrackBallSyncedCharts example from https://github.com/telerik/xaml-sdk/tree/master/ChartView/WPF/TrackBallSyncedCharts and I encounter strange behaviour.When I'm using two charts - everything is ok.But when it comes to 6 charts I get StackOverflow exception...Is that designed that way to handle only two charts(like in example) or this is not expected behaviour?
If there is a infinite loop or recursion that caouses such exception can you please help me to fix that?It even breaks on 4 charts when we have big data to display.
Thanks for any help,
We are not aware of such exception when you synchronize TrackBall of several charts and we weren't able to reproduce it on our side. That is why we would ask you to send us sample project reproducing it so we can directly test it.
We are looking forward to your answer.
Telerik by Progress