From: Hagen Schulze Date: Wed, 18 May 2016 18:42:54 +0000 (+0200) Subject: This fixes #2589 X-Git-Tag: v2.1.4~9^2 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=refs%2Fpull%2F2590%2Fhead;p=thirdparty%2FChart.js.git This fixes #2589 --- diff --git a/src/core/core.scale.js b/src/core/core.scale.js index 9861288cd..7b1e8e92a 100644 --- a/src/core/core.scale.js +++ b/src/core/core.scale.js @@ -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; }