period property
Specifies the period for moving average trendline.
Defaults to 2
.
Widget build(BuildContext context) {
return Container(
child: SfCartesianChart(
series: <CartseianSeries<dynamic,dynamic>>[
LineSeries<dynamic,String>(
trendlines: <TrendLine>[
Trendline(
type: TrendlineType.movingAverage,
period: 3)
])
]
));
}
Implementation
final int period;