mirror of
https://github.com/chartjs/Chart.js.git
synced 2024-10-06 12:19:08 +02:00
Fix scatter sample (#6627)
This commit is contained in:
parent
d932f9c56e
commit
39d83eeae0
@ -137,7 +137,7 @@
|
||||
position: 'bottom',
|
||||
ticks: {
|
||||
userCallback: function(tick) {
|
||||
var remain = tick / (Math.pow(10, Math.floor(Chart.helpers.log10(tick))));
|
||||
var remain = tick / (Math.pow(10, Math.floor(Chart.helpers.math.log10(tick))));
|
||||
if (remain === 1 || remain === 2 || remain === 5) {
|
||||
return tick.toString() + 'Hz';
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user