Commit 99960f6e authored by Masayuki Tanaka's avatar Masayuki Tanaka Committed by masayuki

Add opacity option for region

parent de76ca33
...@@ -1256,6 +1256,7 @@ ...@@ -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()
......
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