Working in D3.js, I\'d like to select all the elements that match a selector except for the current element.
The reason is that I\'d like to mouseover a ci
You can filter
a selection:
vis.selectAll('circle.prospect')
.on("mouseover", function(d) {
console.log(d);
var circleUnderMouse = this;
d3.selectAll('circle.prospect').filter(function(d,i) {
return (this !== circleUnderMouse);
}).transition().style('opacity','0.5');
d3.select(this).attr('opacity','1.0');
});