labelPosition property
final
Position of the labels. Axis labels can be placed either inside or outside the plot area.
Defaults to LabelPosition.outside
Also refer LabelPosition
Widget build(BuildContext context) {
return Container(
child: SfCartesianChart(
primaryXAxis: NumericAxis(labelPosition: LabelPosition.inside),
));
}
Implementation
final LabelPosition labelPosition