createTickFormatter method

  1. @override
NumericTickFormatter createTickFormatter(
  1. ChartContext context
)
override

A formatter will be created with the number format if it is not null. Otherwise, it will create one with the MeasureFormatter callback.

Implementation

@override
NumericTickFormatter createTickFormatter(ChartContext context) {
  return numberFormat != null
      ? NumericTickFormatter.fromNumberFormat(numberFormat!)
      : NumericTickFormatter(formatter: formatter);
}