Skip to content

Commit 92888af

Browse files
committed
Merge pull request #63 from tlrdstd/pie_slices_support_rgba
Pie chart slices support transparent rgba() colors
2 parents 1ce4702 + ef788cb commit 92888af

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/traces/pie/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -152,7 +152,7 @@ pie.calc = function(gd, trace) {
152152

153153
color = tinycolor(trace.marker.colors[i]);
154154
if(color.isValid()) {
155-
color = Plotly.Color.tinyRGB(color);
155+
color = Plotly.Color.addOpacity(color, color.getAlpha())
156156
if(!colorMap[label]) {
157157
colorMap[label] = color;
158158
}

0 commit comments

Comments
 (0)