Skip to content

Commit 97f0b0e

Browse files
committed
use absolute arcs for bar path
1 parent 781fbe2 commit 97f0b0e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/traces/bar/plot.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -296,7 +296,7 @@ function plot(gd, plotinfo, cdModule, traceLayer, opts, makeOnCompleteCallback)
296296
if(di.hasB) {
297297
// Floating base: Round 1st & 2nd, and 3rd & 4th corners
298298
path = 'M' + (x0 + r * xdir) + ',' + y0 +
299-
'a ' + r + ',' + r + ' 0 0 ' + cornersweep + ' ' + r * -xdir + ',' + r * ydir +
299+
'A ' + r + ',' + r + ' 0 0 ' + cornersweep + ' ' + x0 + ',' + (y0 + r * ydir) +
300300
'V' + (y1 - r * ydir) +
301301
'A ' + r + ',' + r + ' 0 0 ' + cornersweep + ' ' + (x0 + r * xdir) + ',' + y1 +
302302
'H' + (x1 - r * xdir) +
@@ -326,7 +326,7 @@ function plot(gd, plotinfo, cdModule, traceLayer, opts, makeOnCompleteCallback)
326326
if(di.hasB) {
327327
// Floating base: Round 1st & 4th, and 2nd & 3rd corners
328328
path = 'M' + (x0 + r * xdir) + ',' + y0 +
329-
'a ' + r + ',' + r + ' 0 0 ' + cornersweep + ' ' + r * -xdir + ',' + r * ydir +
329+
'A ' + r + ',' + r + ' 0 0 ' + cornersweep + ' ' + x0 + ',' + (y0 + r * ydir) +
330330
'V' + (y1 - r * ydir) +
331331
'A ' + r + ',' + r + ' 0 0 ' + cornersweep + ' ' + (x0 + r * xdir) + ',' + y1 +
332332
'H' + (x1 - r * xdir) +

0 commit comments

Comments
 (0)