I'm trying to bring a set of circles to top.
[JS]
function brushUser(userList){
userMapSvg.selectAll('circle')
.data(userNodes)
.classed('selected', function(d){
if ( contains(userList, d.firmwideId)){
return true;
}
else
return false;
});
}
[CSS]
#selector-usermap-body circle {
fill: steelblue;
z-index: 1;
}
#selector-usermap-body circle.selected{
stroke: black;
stroke-width: 2;
z-index: 10;
}
But it's not working.
I'm wondering if there's a way to do this by CSS and class.
The question is similar to this but I'm looking for an elegant way.