From: Ben McCann <322311+benmccann@users.noreply.github.com> Date: Thu, 9 Jan 2020 21:25:31 +0000 (-0800) Subject: Fix broken config in log scatter sample (#6937) X-Git-Tag: v3.0.0-alpha~142 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=404c1a08c7ac4fae4a3711c850ca610815349116;p=thirdparty%2FChart.js.git Fix broken config in log scatter sample (#6937) --- diff --git a/samples/scales/logarithmic/scatter.html b/samples/scales/logarithmic/scatter.html index 0360b3362..d4bc291fd 100644 --- a/samples/scales/logarithmic/scatter.html +++ b/samples/scales/logarithmic/scatter.html @@ -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'; } },