region property
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.chartArea,
x: 3,
y: 60
),
],
)
);
}
Implementation
final AnnotationRegion region;