Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function brushended() {
- path.select('.donutPath')
- .data(pie([brush.extent()[1],100 - brush.extent()[1]]))
- .enter().append("path")
- .attr("fill", function(d, i) { return color(i); })
- .attr("d", arc);
- }
- var brush = d3.svg.brush()
- .x(x)
- .extent([0,40])
- .on("brush", brushended);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement