labelAlignment property

LabelAlignment labelAlignment
final

Alignment of the labels.

Axis labels can be placed either to the start, end or center of the grid lines.

Defaults to LabelAlignment.start.

Also refer LabelAlignment.

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
          primaryXAxis: NumericAxis(labelAlignment: LabelAlignment.start),
       )
   );
}

Implementation

final LabelAlignment labelAlignment;