Skip to content

Commit b68537e

Browse files
Null verification to the overlaying axis
1 parent e982570 commit b68537e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/plots/cartesian/axes.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -675,7 +675,7 @@ axes.prepTicks = function(ax, opts) {
675675

676676
ax.dtick = rangeDeltaAxis / dtickRatio;
677677

678-
if(baseAxis._vals.length > 0) {
678+
if(baseAxis && baseAxis._vals.length > 0) {
679679
var firstTickPosition = baseAxis.l2p(baseAxis._vals[0].x);
680680

681681
var firstTickPercentage = firstTickPosition / baseAxis._length;

0 commit comments

Comments
 (0)