Commit 9e4f70a6 authored by Masayuki Tanaka's avatar Masayuki Tanaka

Remove color.opacity

parent 6f75812a
...@@ -170,7 +170,6 @@ ...@@ -170,7 +170,6 @@
// color // color
var __color_pattern = getConfig(['color', 'pattern'], []), var __color_pattern = getConfig(['color', 'pattern'], []),
__color_opacity = getConfig(['color', 'opacity'], null),
__color_values = getConfig(['color', 'values'], []); __color_values = getConfig(['color', 'values'], []);
// legend // legend
...@@ -1078,7 +1077,7 @@ ...@@ -1078,7 +1077,7 @@
.transition().duration(50) .transition().duration(50)
.attr("d", svgArc); .attr("d", svgArc);
svg.selectAll('.' + CLASS.arc) svg.selectAll('.' + CLASS.arc)
.style("opacity", (__color_opacity) ? __color_opacity : 1); .style("opacity", 1);
} }
function shouldShowArcLable() { function shouldShowArcLable() {
if (hasGaugeType(c3.data.targets)) { if (hasGaugeType(c3.data.targets)) {
...@@ -3580,8 +3579,7 @@ ...@@ -3580,8 +3579,7 @@
mainBar.enter().append('path') mainBar.enter().append('path')
.attr("class", classBar) .attr("class", classBar)
.style("stroke", function (d) { return color(d.id); }) .style("stroke", function (d) { return color(d.id); })
.style("fill", function (d) { return color(d.id); }) .style("fill", function (d) { return color(d.id); });
.style("fill-opacity", function () { if (__color_opacity) { return __color_opacity; } return initialOpacity; });
mainBar mainBar
.style("opacity", initialOpacity) .style("opacity", initialOpacity)
.transition().duration(duration) .transition().duration(duration)
...@@ -3755,7 +3753,7 @@ ...@@ -3755,7 +3753,7 @@
.style("fill", function (d) { .style("fill", function (d) {
return (__gauge_style === 'arc' && __color_values) ? levelColor(d.data.values[0].value) : color(d.data.id); return (__gauge_style === 'arc' && __color_values) ? levelColor(d.data.values[0].value) : color(d.data.id);
}) // Where gauge reading color would receive customization. }) // Where gauge reading color would receive customization.
.style("opacity", (__color_opacity) ? __color_opacity : 1) .style("opacity", 1)
.call(endall, function () { .call(endall, function () {
transiting = false; transiting = false;
}); });
......
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