Skip to content

Commit a2afbf0

Browse files
committed
minor tick text: If not labeled, set to empty string
This is just to be consistent with the way major ticks are set. In axes_test we test for empty string, instead of for undefined.
1 parent b6c6392 commit a2afbf0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/plots/cartesian/axes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1319,7 +1319,7 @@ axes.calcTicks = function calcTicks(ax, opts) {
13191319
if(ticklabelIndex && allTicklabelVals.indexOf(tickVals[i]) !== -1) {
13201320
t = setTickLabel(ax, tickVals[i]);
13211321
} else {
1322-
t = { x: _value };
1322+
t = { x: _value, text: ''};
13231323
}
13241324
t.noTick = tickVals[i].noTick;
13251325
t.minor = true;

0 commit comments

Comments
 (0)