[ad_1]
Where you create the path and assign it an id you can set a class based on the id
d3.selectAll('path').classed('lime', d => d.id.indexOf('06-G4-708') >=0);
[ad_2]
solved D3.js Wildcard selection on SVG Path [closed]
[ad_1]
Where you create the path and assign it an id you can set a class based on the id
d3.selectAll('path').classed('lime', d => d.id.indexOf('06-G4-708') >=0);
[ad_2]
solved D3.js Wildcard selection on SVG Path [closed]