Closed DrNiels closed 2 weeks ago
Hi @DrNiels,
We can replicate the reported issue regarding the 'annotation widget position difference occurs when placing it based on 'point' as the coordinate unit, compared to the plot area and chart area'. This issue is scheduled to be fixed in our upcoming weekly release which is scheduled on April 30, 2024. We will update you here once the release is rolled out and we appreciate your patience until then.
Regards,
Preethika Selvam.
Hi @DrNiels,
We would like to let you know that the reported issue is fixed and rolled out in our patch release. We kindly request you to upgrade the syncfusion_flutter_charts package to the latest version below.
Version: https://pub.dev/packages/syncfusion_flutter_charts/versions/25.1.42+1
Root cause: Missed to consider the plot area offset while converting the annotation position from pixel to point.
If you have any further queries, please feel free to reach out to us.
Regards,
Preethika Selvam.
Seems to work as intended, thank you for the fix!
In my app, I want to use annotations with point as unit. These annotations should only be visible when within the plot area, not above the axis. I have assumed that I simply set region to plotArea, but that does not work.
Consider the following example:
In the initial state, the region of the annotation is set to graph. The annotations are correctly placed, but they are rendered above the axis. I assume this is working as intended as the region is set to graph, though not my desired outcome:
I would assume this to be fixed by changing the region to plotArea. While this prevents the annotations from being visible above the axis, they are not positioned correctly and move slightly to the left. This could be the axis width...
One more wish related to the issue: When I pan the area, I need to run setState to update the position of the annotations. It would be nice if annotations that are placed via CoordinateUnit.point would move along while panning.
I use version 25.1.39+1 of syncfusion_flutter_charts on web
Output of flutter doctor: