labelFormat property Null safety

String? labelFormat
final

Formats the numeric axis labels.

The labels can be customized by adding desired text as prefix or suffix.

Defaults to null.

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
          primaryXAxis: NumericAxis(labelFormat: '{value}M'),
       )
   );
}

Implementation

final String? labelFormat;