region property

AnnotationRegion region
final

Annotations can be placed with respect to either plotArea or chart.

Defaults to AnnotationRegion.chart.

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
           annotations: <CartesianChartAnnotation>[
               CartesianChartAnnotation(
                   widget: Container(
                   child: const Text('Annotation')),
                   region: AnnotationRegion.chart,
                   x: 3,
                   y: 60
                ),
            ],
       )
   );
}

Implementation

final AnnotationRegion region;