verticalAlignment property
Aligns the annotation vertically.
Alignment can be set to near, far, or center.
Defaults to ChartAlignment.center
Also refer ChartAlignment
Widget build(BuildContext context) {
return Container(
child: SfCircularChart(
annotations: <CircularChartAnnotation>[
CircularChartAnnotation(
verticalAlignment: ChartAlignment.near
child: Container(
child: const Text('Empty data'),
),
),
],
));
}
Implementation
final ChartAlignment verticalAlignment;