This commit is contained in:
Hagen Schulze 2016-05-18 20:42:54 +02:00 committed by Evert Timberg
parent e81299ded4
commit 1f653f3f6e

View 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;
}