Fix scatter sample (#6627)

This commit is contained in:
Jukka Kurkela 2019-10-29 00:08:52 +02:00 committed by Evert Timberg
parent d932f9c56e
commit 39d83eeae0

View File

@ -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';
}