dataLabelTextStyle property

TextStyle? dataLabelTextStyle
final

Specifies the text style for data label.

Widget build(BuildContext context) {
 return Scaffold(
     body: Center(
       child: SfTheme(
         data: SfThemeData(
           chartThemeData: SfChartThemeData(
             dataLabelTextStyle: TextStyle(color: Colors.red)
           )
         ),
         child: SfCartesianChart(),
       ),
     )
  );
}

Implementation

final TextStyle? dataLabelTextStyle;