Skip to content

Commit e4a13b3

Browse files
committed
hide only when ticklabeloverflow has hide
1 parent adaea01 commit e4a13b3

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/plots/cartesian/axes.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3057,6 +3057,8 @@ axes.drawLabels = function(gd, ax, opts) {
30573057
var ticklabeloverflow = ax.ticklabeloverflow;
30583058
if(!ticklabeloverflow || ticklabeloverflow === 'allow') return;
30593059

3060+
var hideOverflow = ticklabeloverflow.indexOf('hide') !== -1;
3061+
30603062
var isX = ax._id.charAt(0) === 'x';
30613063
// div positions
30623064
var p0 = 0;
@@ -3096,7 +3098,7 @@ axes.drawLabels = function(gd, ax, opts) {
30963098

30973099
var t = thisLabel.select('text');
30983100
if(adjust) {
3099-
t.style('opacity', 0); // hidden
3101+
if(hideOverflow) t.style('opacity', 0); // hidden
31003102
} else {
31013103
t.style('opacity', 1); // visible
31023104

0 commit comments

Comments
 (0)