labelFormat property

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: LogaithmicAxis(labelFormat: '{value}M'),
       )
   );
}

Implementation

final String? labelFormat;