From: Evert Timberg Date: Sat, 26 Sep 2015 20:50:59 +0000 (-0400) Subject: Update logX sample to use correct label callback X-Git-Tag: 2.0.0-alpha4~12^2~8 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=49a8b191c4c6b39e1f5b142a80995579b751a412;p=thirdparty%2FChart.js.git Update logX sample to use correct label callback --- diff --git a/samples/scatter-logX.html b/samples/scatter-logX.html index fd1451768..9715a0e2d 100644 --- a/samples/scatter-logX.html +++ b/samples/scatter-logX.html @@ -138,7 +138,7 @@ xAxes: [{ type: 'logarithmic', position: 'bottom', - labels: { + ticks: { userCallback: function(tick) { var remain = tick / (Math.pow(10, Math.floor(Chart.helpers.log10(tick)))); if (remain === 1 || remain === 2 || remain === 5) { @@ -154,7 +154,7 @@ }], yAxes: [{ type: 'linear', - labels: { + ticks: { userCallback: function(tick) { return tick.toString() + "dB"; }