File tree Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Expand file tree Collapse file tree 1 file changed +9
-4
lines changed Original file line number Diff line number Diff line change @@ -2887,23 +2887,28 @@ function lsInner(gd) {
2887
2887
. call ( Color . fill , fullLayout . plot_bgcolor ) ;
2888
2888
}
2889
2889
2890
+
2890
2891
// Clip so that data only shows up on the plot area.
2891
2892
var clips = fullLayout . _defs . selectAll ( 'g.clips' ) ,
2892
2893
clipId = 'clip' + fullLayout . _uid + subplot + 'plot' ;
2893
2894
2894
- clips . selectAll ( '#' + clipId )
2895
- . data ( [ 0 ] )
2896
- . enter ( ) . append ( 'clipPath' )
2895
+ var plotClip = clips . selectAll ( '#' + clipId )
2896
+ . data ( [ 0 ] ) ;
2897
+
2898
+ plotClip . enter ( ) . append ( 'clipPath' )
2897
2899
. attr ( {
2898
2900
'class' : 'plotclip' ,
2899
2901
'id' : clipId
2900
2902
} )
2901
- . append ( 'rect' )
2903
+ . append ( 'rect' ) ;
2904
+
2905
+ plotClip . selectAll ( 'rect' )
2902
2906
. attr ( {
2903
2907
'width' : xa . _length ,
2904
2908
'height' : ya . _length
2905
2909
} ) ;
2906
2910
2911
+
2907
2912
plotinfo . plot . attr ( {
2908
2913
'transform' : 'translate(' + xa . _offset + ', ' + ya . _offset + ')' ,
2909
2914
'clip-path' : 'url(#' + clipId + ')'
You can’t perform that action at this time.
0 commit comments