小智 5
纯 CSS解决方案怎么样?
.c3-legend-item-tile {
shape-rendering: auto;
stroke-linecap: round;
stroke-dasharray: 0.1 10;
stroke-width: 8;
transform: translate(6px, 1px);
}
Run Code Online (Sandbox Code Playgroud)
查看实际操作: https: //jsfiddle.net/Dimmy/40cubjve/