Skip to content

Commit 1c6e47b

Browse files
committed
dont touch pt.parent
1 parent 4d790a1 commit 1c6e47b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/traces/sunburst/fx.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -113,7 +113,7 @@ module.exports = function attachFxHandlers(sliceTop, entry, gd, cd, opts) {
113113
var ref2 = parent;
114114
if(ref2) {
115115
hoverPt.percentParent = pt.percentParent = val / getVal(ref2);
116-
hoverPt.parent = pt.parent = helpers.getLabelString(parentLabel);
116+
hoverPt.parent = pt.parentString = helpers.getLabelString(parentLabel);
117117
if(hasFlag('percent parent')) {
118118
tx = helpers.formatPercent(hoverPt.percentParent, separators) + ' of ' + hoverPt.parent;
119119
insertPercent();
@@ -315,7 +315,7 @@ function makeEventData(pt, trace, keys) {
315315
if(key in pt) out[key] = pt[key];
316316
}
317317
// handle special case of parent
318-
if('parent' in pt) out.parent = pt.parent;
318+
if('parentString' in pt) out.parent = pt.parentString;
319319

320320
appendArrayPointValue(out, trace, cdi.i);
321321

0 commit comments

Comments
 (0)