period property

int period
final

Specifies the period for moving average trendline.

Defaults to 2.

Widget build(BuildContext context) {
  return SfCartesianChart(
    series: <CartesianSeries<ChartData,String>>[
      LineSeries<ChartData,String>(
        trendlines: <TrendLine>[
          Trendline(period: 3)
        ]
      )
    ]
  );
}

Implementation

final int period;