TrackBallInfoControl maximum limits

2 posts, 0 answers
  1. Samuel
    Samuel avatar
    1 posts
    Member since:
    Dec 2017

    Posted 14 Dec 2017 Link to this post

    Hello, I found a weird behavior with the trackball display when the chart is a bit large. Right now I'm displaying some statistics for a year worth of data, which demands a user scroll. I'm not using the Pan and Zoom as it adds complexity to the experience with the chart, so I'm just expanding the RadCartesianChart Width until it display all the data that I need to show, like this:

    <ScrollViewer VerticalScrollBarVisibility="Disabled"
             <telerik:RadCartesianChart HorizontalAlignment="Left" Height="Auto"
                              Width="{Binding ItemsCount, Converter={StaticResource ChartBarSeriesCountToWidthConverter}}">


    The problem is that, when I'm displaying the TrackBallInfoControl, and the Width of the Chart is higher than 15000 px, the Trackball control stops to move with the mouse and gets stuck at the 15000 px mark. The TrackBallLines are working fine, the problem only happens with the modal (tooltip) that is displayed.

    The problem seems to be in the ChartTrackBallBehavior.

    Why do you have such restriction, and how can I overcome it? Are there any workarounds for the RadCartesianChart and TrackBallInfoControl to make it work without facing this problem?

    Thanks in advance

  2. Martin Ivanov
    Martin Ivanov avatar
    1883 posts

    Posted 19 Dec 2017 Link to this post

    Hello Samuel,

    The 15000 units limit was introduced to fix an issue with the trackball behavior when the chart's zoom level is very big. To display a trackball in a scenario with a plot area bigger than 15000px you can use the approach shown in the TrackBallLikeAnnotation SDK example. Basically, you can use chart annotations to draw a custom trackball.

    Martin Ivanov
    Progress Telerik
    Want to extend the target reach of your WPF applications, leveraging iOS, Android, and UWP? Try UI for Xamarin, a suite of polished and feature-rich components for the Xamarin framework, which allow you to write beautiful native mobile apps using a single shared C# codebase.
Back to Top