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

TrackBallInfo snap to series

4 Answers 20 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
James
Top achievements
Rank 1
James asked on 16 Jul 2014, 11:14 AM
Hi,

I see that snap mode has three options; None, AllClosePoints, ClosestPoint. However I was wondering if it is possible to snap to a given series only? For example series 1 has 300 data points but series 2 only has 100 (both can be plotted on the same chart). I would like the TrackBallInfo to only snap to data points in series 2 (but show data for 1 and 2)

Thanks for your help!

4 Answers, 1 is accepted

Sort by
0
Petar Marchev
Telerik team
answered on 17 Jul 2014, 07:46 AM
Hi James,

You should be able to achieve this by utilizing the TrackBallInfoChanged event of the behavior. You can remove the unneeded DataPointInfos from the context (check the event args).

Regards,
Petar Marchev
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
James
Top achievements
Rank 1
answered on 17 Jul 2014, 10:10 AM
Hi Petar,

Thanks for your reply, although I'm not sure I was clear enough in my first post. I know how to prevent data from displaying on the TrackBallInfo. What I'm trying to achieve is preventing the "candle stick" from snapping to a given series.

For example series A has 100 points and series B only has 50. I want to TrackBallInfo to only snap to series B.

Thanks,

James
0
Petar Marchev
Telerik team
answered on 17 Jul 2014, 11:28 AM
Hello James,

Are you perhaps talking about a bug in the control (logged and described here) - the line is snapped to a point that was actually removed from the datapointinfos? If this is the case, you can vote for the bug and track its status. Let us know if this is what you mean and if you have any other questions.

Regards,
Petar Marchev
Telerik
 
Check out Telerik Analytics, the service which allows developers to discover app usage patterns, analyze user data, log exceptions, solve problems and profile application performance at run time. Watch the videos and start improving your app based on facts, not hunches.
 
0
James
Top achievements
Rank 1
answered on 17 Jul 2014, 04:27 PM
Yep that's it! Argh and my subscription has just run out so I'll never get the fix!

Thanks anyway
Tags
ChartView
Asked by
James
Top achievements
Rank 1
Answers by
Petar Marchev
Telerik team
James
Top achievements
Rank 1
Share this question
or