Skip to content

Commit c0cf281

Browse files
committed
fix aggregated pie pattern color when colors is an array
1 parent 59dc439 commit c0cf281

File tree

3 files changed

+3
-2
lines changed

3 files changed

+3
-2
lines changed

draftlogs/6601_add.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
1-
- add pattern to pie, funnelarea, sunburst, icicle and treemap traces [[#6601](https://github.com/plotly/plotly.js/pull/6601), [#6619](https://github.com/plotly/plotly.js/pull/6619), [#6622](https://github.com/plotly/plotly.js/pull/6622), [#6626](https://github.com/plotly/plotly.js/pull/6626), [#6627](https://github.com/plotly/plotly.js/pull/6627) [#6628](https://github.com/plotly/plotly.js/pull/6628)],
1+
- add pattern to pie, funnelarea, sunburst, icicle and treemap traces [[#6601](https://github.com/plotly/plotly.js/pull/6601), [#6619](https://github.com/plotly/plotly.js/pull/6619), [#6622](https://github.com/plotly/plotly.js/pull/6622), [#6626](https://github.com/plotly/plotly.js/pull/6626), [#6627](https://github.com/plotly/plotly.js/pull/6627, [#6628](https://github.com/plotly/plotly.js/pull/6628), [#6629](https://github.com/plotly/plotly.js/pull/6629)],
22
with thanks to @thierryVergult for the contribution!

src/components/drawing/index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -753,7 +753,8 @@ drawing.singlePointStyle = function(d, sel, trace, fns, gd, pt) {
753753
fgcolor = pt.color;
754754
perPointPattern = true;
755755
}
756-
var patternFGColor = drawing.getPatternAttr(fgcolor, d.i, null);
756+
var patternFGColor = drawing.getPatternAttr(fgcolor, d.i, (pt && pt.color) || null);
757+
757758
var patternBGColor = drawing.getPatternAttr(markerPattern.bgcolor, d.i, null);
758759
var patternFGOpacity = markerPattern.fgopacity;
759760
var patternSize = drawing.getPatternAttr(markerPattern.size, d.i, 8);
1.42 KB
Loading

0 commit comments

Comments
 (0)