Fix broken config in log scatter sample (#6937)

This commit is contained in:
Ben McCann 2020-01-09 13:25:31 -08:00 committed by Evert Timberg
parent c6c4a52257
commit 404c1a08c7

View File

@ -137,7 +137,7 @@
type: 'logarithmic',
position: 'bottom',
ticks: {
userCallback: function(tick) {
callback: function(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';
@ -153,7 +153,7 @@
y: {
type: 'linear',
ticks: {
userCallback: function(tick) {
callback: function(tick) {
return tick.toString() + 'dB';
}
},