Merge pull request #2590 from haschu/fix/2589

This fixes #2589
This commit is contained in:
Evert Timberg 2016-05-19 07:02:58 -04:00
commit ecb7ce133e

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