enableAxisAnimation property Null safety

bool enableAxisAnimation
final

Axis elements animation on visible range change.

Axis elements like grid lines, tick lines and labels will be animated when the axis range is changed dynamically. Axis visible range will be changed while zooming, panning or while updating the data points.

The elements will be animated on setting true to this property and this is applicable for all primary and secondary axis in the chart.

Defaults to false

See also ChartSeries.animationDuration for changing the series animation duration.

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
           enableAxisAnimation: true,
       ));
}

Implementation

final bool enableAxisAnimation;