mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-06 12:19:08 +02:00
Pass number format to tooltip (#9831)
This commit is contained in:
parent
681ada552e
commit
7966227df3
@ -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);
|
||||
}
|
||||
}
|
||||
|
@ -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);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user