Commit cc913bc5 authored by Masayuki Tanaka's avatar Masayuki Tanaka

Fix region

parent eb7452fc
...@@ -3259,7 +3259,7 @@ ...@@ -3259,7 +3259,7 @@
.attr("height", regionHeight) .attr("height", regionHeight)
.style("fill-opacity", function (d) { return isValue(d.opacity) ? d.opacity : 0.1; }); .style("fill-opacity", function (d) { return isValue(d.opacity) ? d.opacity : 0.1; });
mainRegion.exit().transition().duration(duration) mainRegion.exit().transition().duration(duration)
.style("fill-opacity", 0) .style("opacity", 0)
.remove(); .remove();
// bars // bars
...@@ -4342,13 +4342,13 @@ ...@@ -4342,13 +4342,13 @@
}; };
c3.regions = function (regions) { c3.regions = function (regions) {
if (isUndefined(regions)) { return __regions; } if (!regions) { return __regions; }
__regions = regions; __regions = regions;
redraw(); redraw();
return __regions; return __regions;
}; };
c3.regions.add = function (regions) { c3.regions.add = function (regions) {
if (isUndefined(regions)) { return __regions; } if (!regions) { return __regions; }
__regions = __regions.concat(regions); __regions = __regions.concat(regions);
redraw(); redraw();
return __regions; return __regions;
......
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