]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
Remove check that is always true (#6701)
authorBen McCann <322311+benmccann@users.noreply.github.com>
Wed, 6 Nov 2019 12:13:40 +0000 (04:13 -0800)
committerEvert Timberg <evert.timberg+github@gmail.com>
Wed, 6 Nov 2019 12:13:40 +0000 (07:13 -0500)
src/core/core.scale.js

index 6cc8b3ab31147c38627d9842f985de79899fa5b6..d5529aa006a7a00b9474988e33fc2d9b71f1bae7 100644 (file)
@@ -1012,11 +1012,6 @@ var Scale = Element.extend({
                for (i = 0; i < ticksLength; ++i) {
                        tick = ticks[i] || {};
 
-                       // autoskipper skipped this tick (#4635)
-                       if (isNullOrUndef(tick.label) && i < ticks.length) {
-                               continue;
-                       }
-
                        if (i === me.zeroLineIndex && options.offset === offsetGridLines) {
                                // Draw the first index specially
                                lineWidth = gridLines.zeroLineWidth;
@@ -1103,11 +1098,6 @@ var Scale = Element.extend({
                        tick = ticks[i];
                        label = tick.label;
 
-                       // autoskipper skipped this tick (#4635)
-                       if (isNullOrUndef(label)) {
-                               continue;
-                       }
-
                        pixel = me.getPixelForTick(tick._index || i) + optionTicks.labelOffset;
                        font = tick.major ? fonts.major : fonts.minor;
                        lineHeight = font.lineHeight;