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

TrackBallInfoControl maximum limits

1 Answer 113 Views
ChartView
This is a migrated thread and some comments may be shown as answers.
Samuel
Top achievements
Rank 1
Samuel asked on 14 Dec 2017, 03:04 PM

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"
      HorizontalScrollBarVisibility="Auto"
      HorizontalAlignment="Stretch"
      VerticalAlignment="Stretch">
         <telerik:RadCartesianChart HorizontalAlignment="Left" Height="Auto"
                          Width="{Binding ItemsCount, Converter={StaticResource ChartBarSeriesCountToWidthConverter}}">
         </telerik:RadCartesianChart>
</ScrollViewer>

 

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

1 Answer, 1 is accepted

Sort by
0
Martin Ivanov
Telerik team
answered on 19 Dec 2017, 01:40 PM
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.

Regards,
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.
Tags
ChartView
Asked by
Samuel
Top achievements
Rank 1
Answers by
Martin Ivanov
Telerik team
Share this question
or