Chart Pan and Zoom Events

1 Answer 17 Views
Chart
Shivar
Top achievements
Rank 1
Shivar asked on 07 Mar 2025, 11:38 PM
I'm currently using a chart bar series within a ScrollView. The reason it's within a ScrollView is because I have a CollectionView of 4 cards displaying relevant data to the charts at the bottom of the ScrollView. Natively when I'm pinch zooming or panning (any tap or drag gesture on the chart), I can disable the ScrollView with the chart pan and pinch gestures using MPAndroidChart so that it doesn't interfere with the pinch zoom. I managed to figure out a way on iOS to disable the ScrollView. I add Pan and Pinch Gestures to the chart which prevents the scrolling but this doesn't work on Android. For it to be uniform, Can you suggest a way where we can disable the ScrollView when I Pan or Pinch Zoom on the bar chart? Thank you.
Lance | Senior Manager Technical Support
Telerik team
commented on 10 Mar 2025, 05:30 PM

Hi Shivar,

The ScrollView component is not from Telerik UI for Maui, so we are limited in what we can do to assist. While the Chart has its own internal native ScrollView element for these gestures and was not designed to be embedded in multiple ScrollViews with conflicting gestures.

As an important tip, when you post your question in any of the Microsoft locations, you will want to be careful about how you phrase the question and avoid putting focus on the 3rd party component. You don't want them to accidentally send you back here when you're really asking for help with the Microsoft component.

In the meantime, I did find some resources that might be useful for you:

Shivar
Top achievements
Rank 1
commented on 11 Mar 2025, 06:53 AM

Hi Lance,

Thank you for your response. I understand that the ScrollView component is not a Telerik component but my question was more related to the Chart component of Telerik.

In short, is there a way to trigger events from the charts when you pinch zoom or pan? I've been through the documents and there's no mention of it. If there's no way, is there plans for the future to include these events?

1 Answer, 1 is accepted

Sort by
0
Didi
Telerik team
answered on 11 Mar 2025, 11:56 AM

Hi Shivar,

The Telerik MAUI Chart Pan and Zoom behavior is described here: https://docs.telerik.com/devtools/maui/controls/chart/behaviors/pan-and-zoom-behavior So there isn't an event.

The Chart is a native control and there is a native Android, native iOS Chart controls. The gestures they use are native gestures. If you want to review the native Android Pan and Zoom behavior of the Chart, this is the documentation: https://docs.telerik.com/devtools/xamarin/nativecontrols/android/chart/behaviors/chart-behaviors-panzoom

You can access the native chart using a handler and check what options you have, still I couldn't find a way to stop the scrolling on native level.

Regards,
Didi
Progress Telerik

Enjoyed our products? Share your experience on G2 and receive a $25 Amazon gift card for a limited time!

Tags
Chart
Asked by
Shivar
Top achievements
Rank 1
Answers by
Didi
Telerik team
Share this question
or
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy