更新时间:2022-06-22 08:02:43
默认高光具有不透明度= 0.2的白色填充和笔触.因此,您可以找到具有这种笔触不透明度的路径并将其更改为黑色:
The default highlight has fill and stroke of white with opacity = 0.2. Therefore you can find paths with this stroke opacity and change them to black:
$("#chart g path").each(function (idx){
var op = $(this).attr('stroke-opacity');
if (op == 0.2){
$(this)
.attr('stroke', '#000')
.attr('stroke-opacity', 1)
.attr('stroke-width', 2);
}
});