initialVisibleMinimum property

DateTime? initialVisibleMinimum
final

The minimum visible value of the axis.

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

Defaults to null.

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

Implementation

final DateTime? initialVisibleMinimum;