Advertisement
Guest User

Untitled

a guest
Apr 25th, 2014
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. function highlight() {
  2. var selectedClass = d3.select(this).attr("class");
  3. d3.selectAll("circle")
  4. .style("fill",function(d) {
  5. if ( selectedClass == d3.select(this).attr("class"))
  6. return "magenta";
  7. });
  8. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement