textStyle property
Customizes the appearance of the chart title text.
Widget build(BuildContext context) {
return SfCartesianChart(
title: ChartTitle(
text: 'Chart Title'
textStyle: TextStyle(
color: Colors.red,
fontSize: 12,
fontStyle: FontStyle.normal,
fontWeight: FontWeight.w400,
fontFamily: 'Roboto'
)
)
);
}
Implementation
final TextStyle textStyle;