trendlines property
Customizes the trendlines.
Trendline are used to mark the specific area of interest in the plot area with texts, shapes, or images.
Widget build(BuildContext context) {
return SfCartesianChart(
series: <LineSeries<ChartData, num>>[
LineSeries<ChartData, num>(
trendlines: <ChartTrendline>[
Trendline(
type: TrendlineType.linear
)
]
)
],
);
}
Implementation
final List<Trendline>? trendlines;