Commit 1f6b7983 authored by Brandon Bernal's avatar Brandon Bernal

MAP-5714: Modified c3 to accept color.opacity as an value in pie charts.

parent 1a8f00f4
......@@ -1053,7 +1053,7 @@
.transition().duration(50)
.attr("d", svgArc);
svg.selectAll('.' + CLASS.arc)
.style("opacity", 1);
.style("opacity", (__color_opacity) ? __color_opacity : 1);
}
function shouldShowArcLable() {
return hasDonutType(c3.data.targets) ? __donut_label_show : __pie_label_show;
......@@ -3362,7 +3362,7 @@
return function (t) { return getArc(interpolate(t), true); };
})
.attr("transform", withTransform ? "scale(1)" : "")
.style("opacity", 1);
.style("opacity", (__color_opacity) ? __color_opacity : 1);
main.selectAll('.' + CLASS.chartArc).select('text')
.attr("transform", transformForArcLabel)
.style("opacity", 0)
......
This source diff could not be displayed because it is too large. You can view the blob instead.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment