Choropleth maps: changing stroke color in `mouseover` shows overlapping boundaries

丶灬走出姿态 提交于 2019-11-30 07:34:59

Move the element in question to the last position amongst peers so it draws over all neighbors, like this:

.on("mouseover", function(d,i) {
    d3.select(this.parentNode.appendChild(this)).transition().duration(300)
        .style({'stroke-opacity':1,'stroke':'#F00'});
})
标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!