Skip to content

Commit 2a31685

Browse files
committed
apply next text position when it is not at the center
1 parent 328ffd0 commit 2a31685

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/traces/sunburst/plot.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -433,9 +433,11 @@ function plotOne(gd, cd, element, transitionOpts) {
433433
var x0 = x0Fn(t);
434434
var x1 = x1Fn(t);
435435
var rCenter = rCenterFn(t);
436+
var pxmid = rx2px(rpx1, (x0 + x1) / 2);
436437

437438
var d = {
438-
pxmid: rx2px(rpx1, (x0 + x1) / 2),
439+
pxtxt: pt.pxtxt || pxmid,
440+
pxmid: pxmid,
439441
transform: {
440442
rCenter: rCenter,
441443
x: transform.x,

0 commit comments

Comments
 (0)