series property

dynamic series
final

Get the current series.

SfCartesianChart(
   onLegendTapped: (LegendTapArgs args) {
     CartesianSeries<dynamic, dynamic> series = args.series;
     print(series.name);
   },
 )

Note: Series type may vary based on the chart type.

  • Cartesian chart: CartesianSeries series;
  • Circular chart: CircularSeries series;
  • Funnel Chart: FunnelSeries series;
  • Pyramid Chart: PyramidSeries series;

Implementation

final dynamic series;