Hello,
I am displaying 4 SfCartesianChart using a PageView.
The graphics are displayed fine and the ZoomIn and ZoomOut function also works correctly at startup, but when going from one page to another in the PageView, they no longer work.
I have observed during the crash that the ZoomIn method returns early because it finds that the parent variable == null.
/// Increases the magnification of the plot area.
void zoomIn() {
final RenderBehaviorArea? parent = parentBox as RenderBehaviorArea?;
if (parent == null) {
return;
}
I will appreciate any help.
Greetings,
Juan
Hi Juan,
We are validating your query at our end, and we will update further details in one business day within March 19, 2024. We appreciate your patience until then.
Regards,
Preethika Selvam.
Thank you very much for your reply.
Just now I found a solution to the problem that I mention below, although perhaps the problem was nothing more than my mistake:
I used the same variable that contained the ZoomPanBehavior object for the graph that was on each of the PageView pages (one graph per PageView page).
Using different variables that contain the ZoomPanBehavior object for each graph on each page of the PageView, the problem was solved, since zoom methods (zoomIn, zoomOut and zoomReset) now work perfectly.
Thank you very much for your attention.
Kind regards,
Juan
Hi Juan,
We are happy to hear that the solution was found by yourself. We will fix this issue internally and include it in our upcoming release, which is expected to be rolled out by April 4, 2024. We will update you here once the release is rolled out and we appreciate your patience until then.
Regards,
Preethika Selvam.
Hi Juan,
We would like to let you know that the reported issue has been fixed and rolled out in our weekly patch release. We kindly request that you upgrade the syncfusion_flutter_charts package to the latest version below.
Version: https://pub.dev/packages/syncfusion_flutter_charts/versions/25.1.38
If you have any further queries, please feel free to reach out to us.
Regards,
Lokesh P.