d3js v3 brushes code example
Example 1: d3js brushes
<script>
var myCircle = d3.select("#dataviz_brushing")
.append("svg")
.append("circle")
.attr("cx", 200)
.attr("cy", 200)
.attr("r", 40)
.attr("fill", "#69a3b2")
d3.select("#dataviz_brushing")
.call( d3.brush()
.extent( [ [10,400], [400,400] ] )
)
</script>
Example 2: d3js brushes
<script>
var myCircle = d3.select("#dataviz_brushing")
.append("svg")
.append("circle")
.attr("cx", 200)
.attr("cy", 200)
.attr("r", 40)
.attr("fill", "#69a3b2")
d3.select("#dataviz_brushing")
.call( d3.brush()
.extent( [ [400,0], [400,400] ] )
)
</script>