Skip to content

Commit 603e0cc

Browse files
committed
wip
1 parent 51d7e1b commit 603e0cc

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/traces/bar/style.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,10 @@ function resizeText(gd, gTrace, traceType) {
3232
case 'pie' :
3333
case 'sunburst' :
3434
case 'treemap' :
35-
t = gTrace.selectAll('g.slicetext');
35+
t = gTrace.selectAll('g.slice');
3636
break;
3737
default :
38-
t = gTrace.selectAll('g.points').selectAll('g.point');
38+
t = gTrace.selectAll('g.points > g.point');
3939
}
4040

4141
t.each(function(d) {

src/traces/funnelarea/plot.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ module.exports = function plot(gd, cdModule) {
8383
formatSliceLabel(gd, pt, cd0);
8484
var textPosition = pieHelpers.castOption(trace.textposition, pt.pts);
8585
var sliceTextGroup = sliceTop.selectAll('g.slicetext')
86-
.data(pt.text && (textPosition !== 'none') ? [pt] : []);
86+
.data(pt.text && (textPosition !== 'none') ? [0] : []);
8787

8888
sliceTextGroup.enter().append('g')
8989
.classed('slicetext', true);

src/traces/pie/plot.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ function plot(gd, cdModule) {
132132
formatSliceLabel(gd, pt, cd0);
133133
var textPosition = helpers.castOption(trace.textposition, pt.pts);
134134
var sliceTextGroup = sliceTop.selectAll('g.slicetext')
135-
.data(pt.text && (textPosition !== 'none') ? [pt] : []);
135+
.data(pt.text && (textPosition !== 'none') ? [0] : []);
136136

137137
sliceTextGroup.enter().append('g')
138138
.classed('slicetext', true);

0 commit comments

Comments
 (0)