@@ -2865,7 +2865,7 @@ axes.drawGrid = function(gd, ax, opts) {
2865
2865
. attr ( 'd' , opts . path )
2866
2866
. call ( Color . stroke , ax . gridcolor || '#ddd' )
2867
2867
. style ( 'stroke-width' , ax . _gw + 'px' )
2868
- . style ( { opacity : 1 } ) ; // ensure visible
2868
+ . style ( { visibility : 'visible' } ) ;
2869
2869
2870
2870
if ( ( ( ax . _anchorAxis || { } ) . ticklabelposition || '' ) . indexOf ( 'inside' ) !== - 1 ) {
2871
2871
if ( ax . _hideCounterAxisInsideTickLabels ) {
@@ -3035,7 +3035,7 @@ axes.drawLabels = function(gd, ax, opts) {
3035
3035
} ) ;
3036
3036
3037
3037
if ( isInside ) {
3038
- thisText . style ( { opacity : 1 } ) ; // ensure visible
3038
+ thisText . style ( { visibility : 'visible' } ) ;
3039
3039
3040
3040
if ( ax . _hideOutOfRangeInsideTickLabels ) {
3041
3041
ax . _hideOutOfRangeInsideTickLabels ( ) ;
@@ -3080,7 +3080,7 @@ axes.drawLabels = function(gd, ax, opts) {
3080
3080
else if ( bb . top + ( ax . tickangle ? 0 : d . fontSize / 4 ) < min ) hide = true ;
3081
3081
}
3082
3082
if ( hide ) {
3083
- thisLabel . select ( 'text' ) . style ( { opacity : 0 } ) ;
3083
+ thisLabel . select ( 'text' ) . style ( { visibility : 'hidden' } ) ;
3084
3084
} else {
3085
3085
visibleLabelMin = Math . min ( visibleLabelMin , isX ? bb . top : bb . left ) ;
3086
3086
visibleLabelMax = Math . max ( visibleLabelMax , isX ? bb . bottom : bb . right ) ;
@@ -3103,7 +3103,7 @@ axes.drawLabels = function(gd, ax, opts) {
3103
3103
var q = ax . l2p ( d . x ) + ax . _offset ;
3104
3104
3105
3105
if ( q < ax . _visibleLabelMax && q > ax . _visibleLabelMin ) {
3106
- d3 . select ( this ) . style ( { opacity : 0 } ) ;
3106
+ d3 . select ( this ) . style ( { visibility : 'hidden' } ) ;
3107
3107
}
3108
3108
} ) ;
3109
3109
} ) ;
0 commit comments