Skip to content

Commit e225529

Browse files
committed
ensure reset display when the element is reused
1 parent d3c1435 commit e225529

File tree

2 files changed

+3
-0
lines changed

2 files changed

+3
-0
lines changed

draftlogs/6335_fix.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
- Hide pie text on empty slices to avoid PDF exports in MS Word from SVG imports [[#6335](https://github.com/plotly/plotly.js/pull/6335)]

src/traces/pie/plot.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -246,6 +246,8 @@ function plot(gd, cdModule) {
246246
strTranslate(transform.x, transform.y) +
247247
strScale(scale) +
248248
strTranslate(transform.tx, transform.ty));
249+
250+
titleText.style('display', null);
249251
} else {
250252
titleText.style('display', 'none');
251253
}

0 commit comments

Comments
 (0)