trendlines property

List<Trendline>? trendlines
final

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: <Trendline>[
          Trendline(
            type: TrendlineType.linear
          )
        ]
      )
    ],
  );
}

Implementation

final List<Trendline>? trendlines;