text property
Legend title text.
Used to change the text of the title.
Defaults to ‘’
.
Widget build(BuildContext context) {
return Container(
child: SfCartesianChart(
legend: Legend(
isVisible: true,
title: ChartTitle(
text: 'Countries'
))
));
}
Implementation
final String? text;