setValueFormatter method
Sets the formatter to be used for formatting the axis labels. If no formatter is set, the chart will automatically determine a reasonable formatting (concerning decimals) for all the values that are drawn inside the chart. Use chart.getDefaultValueFormatter() to use the formatter calculated by the chart.
@param f
Implementation
void setValueFormatter(ValueFormatter? f) {
if (f == null) {
_axisValueFormatter = DefaultAxisValueFormatter(_decimals);
} else {
_axisValueFormatter = f;
}
}