onDataLabelRender property

CircularDatalabelRenderCallback? onDataLabelRender
final

Occurs while rendering the data label. The data label and text styles such as color, font size, and font weight can be customized. You can get the series index, point index, text, and text style.

Widget build(BuildContext context) {
   return Container(
       child: SfCircularChart(
           onDataLabelRender: (DataLabelRenderArgs args) => dataLabel(args),
           series: <PieSeries<ChartData, String>>[
             PieSeries<ChartData, String>(
              dataLabelSettings: DataLabelSettings(isVisible: true)
             ),
          ],
       )
   );
}
void dataLabel(DataLabelRenderArgs args) {
   args.text = 'dataLabel';
}

Implementation

final CircularDatalabelRenderCallback? onDataLabelRender;