Hi,I'm working with StackedColumnSeries.
I have set visiblemaximum CategoryAxis of xAxis to control the visible range and chart can be scrollable with panning.
But when the user clicks on one of the legend to filter a series, the visiblemaximum that I have set does not get applied to the label and zooming.It seems that the cause is that xxxZoomFactor value will be the default value. (eg.currentZoomFactor:1.0)
Here is small sample code.
You can reproduce this issue by tapping the legend.
SfCartesianChart(
legend: Legend(isVisible: true),
primaryXAxis: CategoryAxis(
visibleMaximum: 2,
),
series:>[
StackedColumnSeries(
dataSource: [1, 2, 3, 4, 5, 6],
xValueMapper: (int data, _) => data,
yValueMapper: (int data, _) => data),
StackedColumnSeries(
dataSource: [1, 2, 3, 4, 5, 6],
xValueMapper: (int data, _) => data,
yValueMapper: (int data, _) => data),
],
),
and I've found same issue in the forum.
https://www.syncfusion.com/forums/166568/visiblemaximum-does-not-work-when-legend-click
I think this issue still remains in the latest version.
Is there a way to solve this issue?
Thank you.
This video is a recording of the behavior of the sample code.
Hi Shigeyuki,
Greetings from Syncfusion. The reported issue has been fixed already, and it will be roll out in our next weekly patch release on 26th April 2022. We will let you know once the release gets rolled out, and we appreciate your patience until then.
Regards,
Yuvaraj.
Thanks for the reply.
I'm glad this issue has been resolved.
We will be waiting for your update then.
Hi Shigeyuki,
Thanks for your patience. The reported issue is now rolled out in our weekly patch release. To overcome the issue, kindly please update the chart widget package to the latest version below.
https://pub.dev/packages/syncfusion_flutter_charts/versions/20.1.51
Please get back to us if you require further assistance on this.
Regards,
Sriram Kiran