]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Fix broken config in log scatter sample (#6937)
authorBen McCann <322311+benmccann@users.noreply.github.com>
Thu, 9 Jan 2020 21:25:31 +0000 (13:25 -0800)
committerEvert Timberg <evert.timberg+github@gmail.com>
Thu, 9 Jan 2020 21:25:31 +0000 (16:25 -0500)
samples/scales/logarithmic/scatter.html

index 0360b3362ce3642964c49a3a20e49e97f6309497..d4bc291fd8d4c1993382de3f9690793f39cd1f22 100644 (file)
                                                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';
                                        y: {
                                                type: 'linear',
                                                ticks: {
-                                                       userCallback: function(tick) {
+                                                       callback: function(tick) {
                                                                return tick.toString() + 'dB';
                                                        }
                                                },