labelAlignment property
Position of the data label.
Note: This is applicable for Cartesian chart.
Defaults to ChartDataLabelAlignment.auto
Widget build(BuildContext context) {
return Container(
child: SfCartesianChart(
series: <LineSeries<SalesData, num>>[
LineSeries<SalesData, num>(
dataLabelSettings: DataLabelSettings(
isVisible: true,
labelAlignment: ChartDataLabelAlignment.auto),
),
],
));
}
Implementation
final ChartDataLabelAlignment labelAlignment;