Skip to content

Commit ab00d35

Browse files
committed
only make tick and tick labels visible for the first one
1 parent 6bb979a commit ab00d35

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/plots/cartesian/axes.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -3145,7 +3145,7 @@ axes.drawLabels = function(gd, ax, opts) {
31453145
anchoredAxes.push(isX ? plotinfo.yaxis : plotinfo.xaxis);
31463146
}
31473147

3148-
anchoredAxes.forEach(function(anchorAx) {
3148+
anchoredAxes.forEach(function(anchorAx, idx) {
31493149
if(anchorAx && insideTicklabelposition(anchorAx)) {
31503150
(partialOpts || [
31513151
ZERO_PATH,
@@ -3180,7 +3180,7 @@ axes.drawLabels = function(gd, ax, opts) {
31803180
q > ax['_visibleLabelMin_' + anchorAx._id]
31813181
) {
31823182
t.style('display', 'none'); // hidden
3183-
} else if(e.K === 'tick') {
3183+
} else if(e.K === 'tick' && !idx) {
31843184
t.style('display', null); // visible
31853185
}
31863186
});

0 commit comments

Comments
 (0)