labelPlacement property Null safety

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

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

Implementation

final LabelPlacement labelPlacement;