name property
Name of the series.
The name will be displayed in legend item by default. If name is not specified for the series, then the current series index with ‘series’ text prefix will be considered as series name.
Widget build(BuildContext context) {
return Container(
child: SfCartesianChart(
series: <BubbleSeries<BubbleColors, num>>[
BubbleSeries<BubbleColors, num>(
name: 'Bubble Series',
),
],
));
}
Implementation
@override
final String? name;