getValueFormatter method

ValueFormatter getValueFormatter()

Returns the formatter used for formatting the axis labels.

@return

Implementation

ValueFormatter getValueFormatter() {
  if (_axisValueFormatter == null ||
      (_axisValueFormatter is DefaultAxisValueFormatter &&
          (_axisValueFormatter as DefaultAxisValueFormatter).digits !=
              _decimals))
    _axisValueFormatter = DefaultAxisValueFormatter(_decimals);

  return _axisValueFormatter;
}