Advertisement
Guest User

Untitled

a guest
Apr 21st, 2014
46
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.31 KB | None | 0 0
  1. function brushended() {
  2. path.select('.donutPath')
  3. .data(pie([brush.extent()[1],100 - brush.extent()[1]]))
  4. .enter().append("path")
  5. .attr("fill", function(d, i) { return color(i); })
  6. .attr("d", arc);
  7. }
  8.  
  9. var brush = d3.svg.brush()
  10. .x(x)
  11. .extent([0,40])
  12. .on("brush", brushended);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement