Skip to content

Commit fe20694

Browse files
committed
try at fixing #1907
1 parent 3c26cbf commit fe20694

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

src/plots/cartesian/axes.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1706,7 +1706,9 @@ axes.doTicks = function(gd, axid, skipTitle) {
17061706
}
17071707

17081708
if(ax.ticks === 'outside' || ax.showline) {
1709-
labelStandoff += 0.2 * ax.tickfont.size;
1709+
var tickFontSize = ax.tickfont ? ax.tickfont.size : 12;
1710+
1711+
labelStandoff += 0.2 * tickFontSize;
17101712
}
17111713

17121714
// positioning arguments for x vs y axes
-4 Bytes
Loading

0 commit comments

Comments
 (0)