@@ -2998,7 +2998,10 @@ axes.drawLabels = function(gd, ax, opts) {
2998
2998
// sync label: just position it now.
2999
2999
positionLabels ( thisLabel , tickAngle ) ;
3000
3000
}
3001
- } ) ;
3001
+ } )
3002
+ . style ( 'display' , null ) ; // visible
3003
+
3004
+ hideCounterAxisInsideTickLabels ( ax , [ TICK_TEXT ] ) ;
3002
3005
3003
3006
tickLabels . exit ( ) . remove ( ) ;
3004
3007
@@ -3040,7 +3043,7 @@ axes.drawLabels = function(gd, ax, opts) {
3040
3043
} ) ;
3041
3044
3042
3045
if ( isInside ) {
3043
- thisText . style ( 'display ' , null ) ; // visible
3046
+ thisText . style ( 'opacity ' , 0 ) ; // visible
3044
3047
3045
3048
if ( ax . _hideOutOfRangeInsideTickLabels ) {
3046
3049
ax . _hideOutOfRangeInsideTickLabels ( ) ;
@@ -3088,8 +3091,10 @@ axes.drawLabels = function(gd, ax, opts) {
3088
3091
3089
3092
var t = thisLabel . select ( 'text' ) ;
3090
3093
if ( hide ) {
3091
- t . style ( 'display ' , 'none' ) ; // hidden
3094
+ t . style ( 'opacity ' , 0 ) ; // hidden
3092
3095
} else {
3096
+ t . style ( 'opacity' , 1 ) ; // visible
3097
+
3093
3098
if ( side === 'bottom' || side === 'right' ) {
3094
3099
visibleLabelMin = Math . min ( visibleLabelMin , isX ? bb . top : bb . left ) ;
3095
3100
} else {
@@ -3138,7 +3143,7 @@ axes.drawLabels = function(gd, ax, opts) {
3138
3143
var t = d3 . select ( this ) ;
3139
3144
if ( q < ax . _visibleLabelMax && q > ax . _visibleLabelMin ) {
3140
3145
t . style ( 'display' , 'none' ) ; // hidden
3141
- } else if ( e . K === 'tick' && e . L === 'path' ) {
3146
+ } else if ( e . K === 'tick' ) {
3142
3147
t . style ( 'display' , null ) ; // visible
3143
3148
}
3144
3149
} ) ;
0 commit comments