This is a migrated thread and some comments may be shown as answers.

I only want to show Trackball on specific series

2 Answers 42 Views
Chart
This is a migrated thread and some comments may be shown as answers.
This question is locked. New answers and comments are not allowed.
John
Top achievements
Rank 1
John asked on 09 Mar 2013, 10:50 PM
Hi,

I'm have 3 data series shown as line graphs which I want to show on the trackball info. However, I'm also using a number of a stacked area charts as a background to show data ranges. Is there a way to specify which data series the trackball shows information for?

Thanks
John

2 Answers, 1 is accepted

Sort by
0
Victor
Telerik team
answered on 11 Mar 2013, 03:25 PM
Hi John,

In the TrackInfoUpdated event of the track ball behavior, the event arguments have a ChartDataContext. The data context in turn has a list of DataPointInfos that are relevant to the current track ball context. These infos have references to the series of the data point which the data point info represents. You can then modify the DataPointInfo properties based on this information. Also, the event arguments have a Header property of type object that you can also set to something appropriate to the situation.

I hope this helps.

Greetings,
Victor
the Telerik team
Have a suggestion or face a problem - you can use the Ideas & Feedback portal to submit ideas, feedback and vote for them.
0
John
Top achievements
Rank 1
answered on 21 Mar 2013, 02:10 AM
I finally got around to trying this. It all works, thank you very much.

By the way, I am loving the Telerik tools. Very good job.

Regards
John
Tags
Chart
Asked by
John
Top achievements
Rank 1
Answers by
Victor
Telerik team
John
Top achievements
Rank 1
Share this question
or