Skip to content

Commit 049b7fe

Browse files
committed
Fix error: d3 selection.style called as getter
Also remove left-over console debug print
1 parent e157374 commit 049b7fe

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

src/plots/cartesian/axes.js

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3783,8 +3783,11 @@ axes.drawLabels = function(gd, ax, opts) {
37833783
q > ax['_visibleLabelMin_' + anchorAx._id]
37843784
) {
37853785
t.style('display', 'none'); // hidden
3786-
} else if(e.K === 'tick' && !idx && t.style('display') != 'none') {
3787-
t.style('display', null); // visible
3786+
} else if(e.K === 'tick' && !idx) {
3787+
var display = window.getComputedStyle(t.node()).display;
3788+
if (display != 'none') {
3789+
t.style('display', null); // visible
3790+
}
37883791
}
37893792
});
37903793
});
@@ -3807,7 +3810,6 @@ axes.drawLabels = function(gd, ax, opts) {
38073810
var autoangle = null;
38083811

38093812
function fixLabelOverlaps() {
3810-
console.log("fix label overlaps!");
38113813
positionLabels(tickLabels, tickAngle);
38123814

38133815
// check for auto-angling if x labels overlap

0 commit comments

Comments
 (0)