From: Jukka Kurkela Date: Mon, 28 Oct 2019 22:08:52 +0000 (+0200) Subject: Fix scatter sample (#6627) X-Git-Tag: v3.0.0-alpha~289 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=39d83eeae0e1713af7152aa8af40b1cfa50f800e;p=thirdparty%2FChart.js.git Fix scatter sample (#6627) --- diff --git a/samples/scales/logarithmic/scatter.html b/samples/scales/logarithmic/scatter.html index 3a496f4bd..30c5facda 100644 --- a/samples/scales/logarithmic/scatter.html +++ b/samples/scales/logarithmic/scatter.html @@ -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'; }