text property
Text to be displayed as chart title. Any desired text can be set as chart title. If the width of the chart title exceeds the width of the chart, then the title will be wrapped to multiple rows.
Widget build(BuildContext context) {
return Container(
child: SfCartesianChart(
title: ChartTitle(
text: 'Chart Title'
)
));
}
Implementation
final String text;