numberFormat property

NumberFormat? numberFormat
final

Formats the logarithmic axis labels with globalized label formats.

Provides the ability to format a number in a locale-specific way.

Defaults to null.

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

Implementation

final NumberFormat? numberFormat;