TrackBallInfo snap to series

5 posts, 0 answers
  1. James
    James avatar
    22 posts
    Member since:
    Mar 2013

    Posted 16 Jul 2014 Link to this post

    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!
  2. Petar Marchev
    Admin
    Petar Marchev avatar
    968 posts

    Posted 17 Jul 2014 Link to this post

    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.
     
  3. UI for WPF is Visual Studio 2017 Ready
  4. James
    James avatar
    22 posts
    Member since:
    Mar 2013

    Posted 17 Jul 2014 in reply to Petar Marchev Link to this post

    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
  5. Petar Marchev
    Admin
    Petar Marchev avatar
    968 posts

    Posted 17 Jul 2014 Link to this post

    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.
     
  6. James
    James avatar
    22 posts
    Member since:
    Mar 2013

    Posted 17 Jul 2014 in reply to Petar Marchev Link to this post

    Yep that's it! Argh and my subscription has just run out so I'll never get the fix!

    Thanks anyway
Back to Top
UI for WPF is Visual Studio 2017 Ready