textStyle property
Customizes the data label font.
Widget build(BuildContext context) {
return SfCartesianChart(
series: <SplineSeries<SalesData, num>>[
SplineSeries<SalesData, num>(
dataLabelSettings: DataLabelSettings(
isVisible: true,
textStyle: TextStyle(
fontSize: 12
)
),
),
],
);
}
Implementation
final TextStyle? textStyle;