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

4
c3.min.js vendored

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