Selection Zoom
Zooming and Panning in Flutter Cartesian Charts widget | Syncfusion
I followed the example but just couldn't get selection zoom to work on Flutter desktop.
Any thing I did wrongly for desktop?
I set my SfCartesianChart zoomPanBahavior to the above.
Also, once set, I can't change the zoomPanBahavior to another as it complained that this is 'final'
HELP!!
I am using FutureBuilder like this:
And displaying the Chart.
I can see the chart. It is just the box selection not working. Thanks
Hi
I downloaded the sample below:
Run it on the sim but couldn't get Selection Zoom to work either.
What am I missing here?
Attachment: selection_zoom.mp4_ce402f95.zip
Is the Selection Zoom using the Longpress or LongPressDraggable?
Can we change this? I am not sure what is going on..
HELP!
So far, I am able to use RangController to change the X axis and use MouseWheel to zoom.
However, when I click on the Chart, it resets everything to default view even when I am zoomed in or panned to the side.
Why is this so?
Also, what are the things that can block 'Selection Zooming'?
It can block Selection Zooming in your system.
series: myChartSeries,
onChartTouchInteractionDown: (ChartTouchInteractionArgs args) {
switch (_currentChartSelectionMode) {
case ChartSelectionMode.box:
print(args.position.dx.toString());
This code seems wotking fine for me.
I commented out onChartTouchInteractionDown but still cannot get selection zoom working.
I can use wheelzoom to zoom y-axis and also pan.
But I cannot pan x-axis. Every time i click on the chart, it resets back to full chart (full data range)
Any clue what I may be doing wrong here?
Desperately need help,
Many thanks!
However, when I click on the Chart, it resets everything to default view even when I am zoomed in or panned to the side.
Thanks for the answers.
Up till now, many things are working and the only thing that is not working for me is Selection Zoom.
I disabled MouseWheelZoom but Selection Zoom still not working.
Here are some check points:
- Does Selection Zoom work together with RangeController?
- Does Selection Zoom work together with visibleMinimum and visibleMaximum?
- Does Selection Zoom work together zoomFactor and zoomPosition?
Hope to hear from you soon. Thank you.
- 14 Replies
- 4 Participants
-
PE Peter
- Jul 19, 2021 08:03 AM UTC
- Jul 28, 2021 12:26 PM UTC