labelStyle property

TextStyle? labelStyle
final

Customizes the data label text style.

Using the TextStyle, add style data labels.

Defaults to null.

Also refer TextStyle.

@override
Widget build(BuildContext context) {
 return Scaffold(
   body: Center(
       child: SfSparkAreaChart(
     trackball: SparkChartTrackball(labelStyle: TextStyle(fontSize: 15))
        )
     ),
  );
}

Implementation

final TextStyle? labelStyle;