autoScrollingMode property
Determines whether the axis should be scrolled from the start position or end position.
For example, if there are 10 data points and autoScrollingDelta value is
5 and AutoScrollingMode.end
is specified to this property, last 5 points
will be displayed in the chart. If AutoScrollingMode.start
is set to this property, first 5 points will be displayed.
Defaults to AutoScrollingMode.end
.
Widget build(BuildContext context) {
return Container(
child: SfCartesianChart(
primaryXAxis: NumericAxis(
autoScrollingMode: AutoScrollingMode.start,
),
)
);
}
Implementation
final AutoScrollingMode autoScrollingMode;