labelPlacement property

LabelPlacement labelPlacement
final

Position of the 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: CategoryAxis(labelPlacement: LabelPlacement.onTicks),
       )
   );
}

Implementation

final LabelPlacement labelPlacement;