Browse Source

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

pull/254/head
Brandon Bernal 11 years ago
parent
commit
1f6b7983db
  1. 4
      c3.js
  2. 2
      c3.min.js

4
c3.js

@ -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)

2
c3.min.js vendored

File diff suppressed because one or more lines are too long
Loading…
Cancel
Save