animationDelay property

double? animationDelay
final

Delay duration of the trendline animation. It takes a millisecond value as input. By default,the trendline will get animated for the specified duration. If animationDelay is specified, then the trendline will begin to animate after the specified duration.

Defaults to '0'.

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

Implementation

final double? animationDelay;