Paint the apartment and the town of different colors in d3.js
问题 I have a map, departments and municipalities. The departments are delimited by the red lines. I want when I mouse over the municipality, in addition to painting this municipality, also painted the department of another color. var width = 900, height = 900; var div = d3.select("body").append("div") .attr("class", "tooltip") .style("opacity", 0); var svg = d3.select("body").append("svg") .attr("width", width) .attr("height", height); d3.json("https://cdn.rawgit.com/finiterank/mapa-colombia-js