labelPosition property

ChartDataLabelPosition labelPosition
final

Position of the labels.

Axis labels can be placed either inside or outside the plot area.

Defaults to ChartDataLabelPosition.outside.

Also refer ChartDataLabelPosition.

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
          primaryXAxis: NumericAxis(labelPosition: ChartDataLabelPosition.inside),
       ));
}

Implementation

final ChartDataLabelPosition labelPosition;