numberFormat property

NumberFormat? numberFormat
final

Formats the numeric axis labels with globalized label formats.

Defaults to null.

Widget build(BuildContext context) {
   return Container(
       child: SfCartesianChart(
          primaryXAxis: NumericAxis(numberFormat: NumberFormat.currencyCompact()),
       )
   );
}

Implementation

final NumberFormat? numberFormat;