series property

List<ChartSeries> series
final

Customizes the series in chart.

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
          series: <ChartSeries<SalesData, num>>[
               AreaSeries<SalesData, num>(
                   dataSource: chartData,
               ),
             ],
         )
    );
}

Implementation

final List<ChartSeries<dynamic, dynamic>> series;