labelPlacement property

LabelPlacement labelPlacement
final

Position of the date-time category axis labels.

The labels can be placed either between the ticks or at the major ticks.

Defaults to LabelPlacement.betweenTicks.

Also refer LabelPlacement.

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
          primaryXAxis:
            DateTimeCategoryAxis(labelPlacement: LabelPlacement.onTicks),
       )
   );
}

Implementation

final LabelPlacement labelPlacement;