Browse Source

Add opacity option for region

pull/1/head
Masayuki Tanaka 12 years ago committed by masayuki
parent
commit
99960f6e3c
  1. 1
      c3.js

1
c3.js

@ -1256,6 +1256,7 @@
.attr("y", __axis_rotated ? regionStart : margin.top) .attr("y", __axis_rotated ? regionStart : margin.top)
.attr("width", __axis_rotated ? width : regionWidth) .attr("width", __axis_rotated ? width : regionWidth)
.attr("height", __axis_rotated ? regionWidth : height) .attr("height", __axis_rotated ? regionWidth : height)
.style("opacity", function(d){ return typeof d.opacity !== 'undefined' ? d.opacity : .1 })
mainRegion.exit().transition().duration(withTransition ? 250 : 0) mainRegion.exit().transition().duration(withTransition ? 250 : 0)
.attr("opacity", 0) .attr("opacity", 0)
.remove() .remove()

Loading…
Cancel
Save