name property

String? name
final

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 SfCartesianChart(
    series: <BubbleSeries<BubbleColors, num>>[
      BubbleSeries<BubbleColors, num>(
        name: 'Bubble Series'
      )
    ]
  );
}

Implementation

final String? name;