mirror of
https://github.com/chartjs/Chart.js.git
synced 2026-03-19 06:36:51 +01:00
Fix scatter sample (#6627)
This commit is contained in:
committed by
Evert Timberg
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';
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user