fl_chart
fl_chart copied to clipboard
Access to RangeAnnotation coordinates
Feature Request Feature that provides access to the coordinates of the annotations drawn on the chart (RangeAnnotations). The current implementation of RangeAnnotations simply draws a colored container on the chart. This restricts how various applications would like to display annotations. Getting access to the annotation coordinates allows for custom annotations to be drawn.
Describe the solution you'd like A callback function that retrieves the list of annotation coordinates used to draw the annotation container on the chart. The following PR#970 implements the solution.
Additional context Here are some use cases where getting access to the RangeAnnotation coordinates can help in rendering custom annotations. The following was implemented with the changes made on this PR#970


Hey @imaNNeoFighT, I'd appreciate your thoughts on this and PR request.
@Dnathan33 I didn't understand the problem. Where are the custom annotations in your samples?
@imaNNeoFighT The custom annotations are drawn under the charts as seen in the images attached above |_____|
. The custom annotation is drawn from the Offset coordinates returned.
I have added a sample chart that makes use of the coordinates to draw a custom annotation. Please, look at the attached image and /line_chart_sample11.dart
for further details.
cc @imaNNeoFighT