initialVisibleMaximum property

DateTime? initialVisibleMaximum
final

The maximum visible value of the axis.

The axis will end at this date and data points above this value will not be rendered initially. Further those data points can be viewed by panning from right to left direction.

Defaults to null.

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
         primaryXAxis:
          DateTimeCategoryAxis(initialVisibleMaximum: DateTime(2019)),
       )
   );
}

Implementation

final DateTime? initialVisibleMaximum;