labelPosition property

ChartDataLabelPosition labelPosition
final

Position of the data label.

Note: This is applicable for pie and doughnut series types alone.

Defaults to ChartDataLabelPosition.inside

Widget build(BuildContext context) {
   return Container(
       child: SfCircularChart(
           series: <PieSeries<SalesData, String>>[
               PieSeries<SalesData, String>(
                 dataLabelSettings: DataLabelSettings(
                      isVisible: true,
                      labelPosition: ChartDataLabelPosition.outside),
               ),
             ],
       ));
}

Implementation

final ChartDataLabelPosition labelPosition;