mirror of
https://github.com/chartjs/Chart.js.git
synced 2025-12-08 20:36:08 +00:00
Remove check that is always true (#6701)
This commit is contained in:
parent
e42413f3e8
commit
b90552b9ca
@ -1012,11 +1012,6 @@ var Scale = Element.extend({
|
||||
for (i = 0; i < ticksLength; ++i) {
|
||||
tick = ticks[i] || {};
|
||||
|
||||
// autoskipper skipped this tick (#4635)
|
||||
if (isNullOrUndef(tick.label) && i < ticks.length) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (i === me.zeroLineIndex && options.offset === offsetGridLines) {
|
||||
// Draw the first index specially
|
||||
lineWidth = gridLines.zeroLineWidth;
|
||||
@ -1103,11 +1098,6 @@ var Scale = Element.extend({
|
||||
tick = ticks[i];
|
||||
label = tick.label;
|
||||
|
||||
// autoskipper skipped this tick (#4635)
|
||||
if (isNullOrUndef(label)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
pixel = me.getPixelForTick(tick._index || i) + optionTicks.labelOffset;
|
||||
font = tick.major ? fonts.major : fonts.minor;
|
||||
lineHeight = font.lineHeight;
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user