@@ -114,6 +114,7 @@ function plot(gd, plotinfo, cdModule, traceLayer, opts, makeOnCompleteCallback)
114114 }
115115
116116 var isHorizontal = ( trace . orientation === 'h' ) ;
117+ var withTransition = hasTransition ( opts ) ;
117118
118119 var pointGroup = Lib . ensureSingle ( plotGroup , 'g' , 'points' ) ;
119120
@@ -156,6 +157,14 @@ function plot(gd, plotinfo, cdModule, traceLayer, opts, makeOnCompleteCallback)
156157 }
157158 di . isBlank = isBlank ;
158159
160+ if ( isBlank && withTransition ) {
161+ if ( isHorizontal ) {
162+ x1 = x0 ;
163+ } else {
164+ y1 = y0 ;
165+ }
166+ }
167+
159168 // in waterfall mode `between` we need to adjust bar end points to match the connector width
160169 if ( adjustPixel && ! isBlank ) {
161170 if ( isHorizontal ) {
@@ -231,7 +240,7 @@ function plot(gd, plotinfo, cdModule, traceLayer, opts, makeOnCompleteCallback)
231240 . attr ( 'd' , 'M' + x0 + ',' + y0 + 'V' + y1 + 'H' + x1 + 'V' + y0 + 'Z' )
232241 . call ( Drawing . setClipUrl , plotinfo . layerClipId , gd ) ;
233242
234- if ( ! fullLayout . uniformtext . mode && hasTransition ( opts ) ) {
243+ if ( ! fullLayout . uniformtext . mode && withTransition ) {
235244 var styleFns = Drawing . makePointStyleFns ( trace ) ;
236245 Drawing . singlePointStyle ( di , sel , trace , styleFns , gd ) ;
237246 }
0 commit comments