Browse Source

Fix transition for regions when data loaded

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

2
c3.js

@ -3241,11 +3241,11 @@
.append('rect')
.style("fill-opacity", 0);
mainRegion.selectAll('rect')
.transition().duration(duration)
.attr("x", regionX)
.attr("y", regionY)
.attr("width", regionWidth)
.attr("height", regionHeight)
.transition().duration(duration)
.style("fill-opacity", function (d) { return isValue(d.opacity) ? d.opacity : 0.1; });
mainRegion.exit().transition().duration(duration)
.style("fill-opacity", 0)

2
c3.min.js vendored

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