SfCartesianChart has scroll controller, is possible?

1 - Is there any way to listen to the scroll scroll or manipulate it in SfCartesianChart when I have several points where scrolling should occur.

we tried wrapping the SfCartesianChart with a flutter scroll but it didn't work.


what i want to do is synchronize a second list view component with the graph points when i hear scroll


Attachment: chart.png_2e30aa68.zip

1 Reply

YG Yuvaraj Gajaraj Syncfusion Team June 6, 2023 09:18 AM UTC

Hi Ian,


To achieve your requirement, we suggest you use the onPlotAreaSwipe callback which helps you to find the swipe direction of the chart. Based on that you can scroll the chart, we have shared the online demo sample and code snippet below for your reference.


Online demo: https://flutter.syncfusion.com/#/cartesian-charts/user-interactions/pagination


Source code: https://github.com/syncfusion/flutter-examples/blob/master/lib/samples/chart/cartesian_charts/user_interactions/pagination.dart


UG: https://help.syncfusion.com/flutter/cartesian-charts/callbacks#onplotareaswipe


Regards,

Yuvaraj


Loader.
Up arrow icon