Browse Source

Fix region

pull/232/merge
Masayuki Tanaka 11 years ago
parent
commit
cc913bc5e8
  1. 6
      c3.js
  2. 4
      c3.min.js

6
c3.js

@ -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 @@
}; };
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;

4
c3.min.js vendored

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