]> git.ipfire.org Git - thirdparty/Chart.js.git/commitdiff
This fixes #2589 2590/head
authorHagen Schulze <hagen.schulze@nextlabel.de>
Wed, 18 May 2016 18:42:54 +0000 (20:42 +0200)
committerHagen Schulze <hagen.schulze@nextlabel.de>
Wed, 18 May 2016 18:42:54 +0000 (20:42 +0200)
src/core/core.scale.js

index 9861288cd33c93e2770351e2366416d9bd8ae3b0..7b1e8e92a8ba074686c0b4207c9cbda4180b2d47 100644 (file)
@@ -530,7 +530,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;
                                        }