]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Update logX sample to use correct label callback
authorEvert Timberg <evert.timberg@gmail.com>
Sat, 26 Sep 2015 20:50:59 +0000 (16:50 -0400)
committerEvert Timberg <evert.timberg@gmail.com>
Sat, 26 Sep 2015 20:50:59 +0000 (16:50 -0400)
samples/scatter-logX.html

index fd1451768c072a51c3f644ecdf3c7f46417978f2..9715a0e2d283610038f99fa7c50aad73f9d51bc7 100644 (file)
                        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) {
                        }],
                        yAxes: [{
                                type: 'linear',
-                               labels: {
+                               ticks: {
                                        userCallback: function(tick) {
                                                return tick.toString() + "dB";
                                        }