]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
This fixes #2589
authorHagen Schulze <hagen.schulze@nextlabel.de>
Wed, 18 May 2016 18:42:54 +0000 (20:42 +0200)
committerEvert Timberg <evert.timberg+github@gmail.com>
Wed, 25 May 2016 22:39:41 +0000 (18:39 -0400)
src/core/core.scale.js

index cf145dc67c5e019599e1b7d8c1006f9b71b859b4..a158be62457ee62b3c4a63dc7bb438a58fa2ed53 100644 (file)
@@ -536,7 +536,7 @@ module.exports = function(Chart) {
                                        var isLastTick = this.ticks.length === index + 1;
 
                                        // Since we always show the last tick,we need may need to hide the last shown one before
-                                       var shouldSkip = (skipRatio > 1 && index % skipRatio > 0) || (index % skipRatio === 0 && index + skipRatio > this.ticks.length);
+                                       var shouldSkip = (skipRatio > 1 && index % skipRatio > 0) || (index % skipRatio === 0 && index + skipRatio >= this.ticks.length);
                                        if (shouldSkip && !isLastTick || (label === undefined || label === null)) {
                                                return;
                                        }