저는 서클 세트를 맨 위에 올리려고합니다.D3 서클을 맨 위에 올리시겠습니까?
[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;
}
하지만 작동하지 않습니다.
CSS 및 클래스에서이 작업을 수행 할 수 있는지 궁금합니다.
질문은 this과 유사하지만 우아한 방법을 찾고 있습니다.
+1. – SolessChong