We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 2672efa + 4c35bba commit c3149a9Copy full SHA for c3149a9
src/core/core.scale.js
@@ -484,7 +484,9 @@ module.exports = function(Chart) {
484
helpers.each(this.ticks, function(label, index) {
485
// Blank ticks
486
var isLastTick = this.ticks.length === index + 1;
487
- var shouldSkip = skipRatio > 1 && index % skipRatio > 0;
+
488
+ // Since we always show the last tick,we need may need to hide the last shown one before
489
+ var shouldSkip = (skipRatio > 1 && index % skipRatio > 0) || (index % skipRatio === 0 && index + skipRatio > this.ticks.length);
490
if (shouldSkip && !isLastTick || (label === undefined || label === null)) {
491
return;
492
}
0 commit comments