Skip to content

Instantly share code, notes, and snippets.

@nsonnad
Created March 5, 2013 08:28
Show Gist options
  • Save nsonnad/5088800 to your computer and use it in GitHub Desktop.
Save nsonnad/5088800 to your computer and use it in GitHub Desktop.
select all but this in d3
function mouseOn () {
var circleUnderMouse = this;
d3.selectAll('.rectGroup').transition().style('opacity',function () {
return (this === circleUnderMouse) ? 1.0 : 0.5;
});
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment