diff --git a/src/scales/scale.linearbase.js b/src/scales/scale.linearbase.js index 65631a618a1..346e0bc0d4a 100644 --- a/src/scales/scale.linearbase.js +++ b/src/scales/scale.linearbase.js @@ -312,6 +312,6 @@ export default class LinearScaleBase extends Scale { } getLabelForValue(value) { - return formatNumber(value, this.chart.options.locale); + return formatNumber(value, this.chart.options.locale, this.options.ticks.format); } } diff --git a/src/scales/scale.logarithmic.js b/src/scales/scale.logarithmic.js index ba7f5237f26..7ca55038c27 100644 --- a/src/scales/scale.logarithmic.js +++ b/src/scales/scale.logarithmic.js @@ -146,7 +146,9 @@ export default class LogarithmicScale extends Scale { * @return {string} */ getLabelForValue(value) { - return value === undefined ? '0' : formatNumber(value, this.chart.options.locale); + return value === undefined + ? '0' + : formatNumber(value, this.chart.options.locale, this.options.ticks.format); } /**