map = {
const svg = d3
.create("svg")
.attr("viewBox", [0, 0, width, height])
.attr("width", width)
.attr("height", height)
.style("background-color", "#EEE");
svg.call(drawtemplate);
svg
.append("g")
.attr("fill-opacity", 0.9)
.attr("stroke", "#fff")
.attr("stroke-width", 1)
.selectAll("line")
.data(
arrows
.sort((a, b) => d3.ascending(a.properties.fij, b.properties.fij))
.filter((d) => d.properties.fij >= threshold)
)
.join("path")
.attr("stroke", "#95a1c9")
.attr("fill", "#6594ab")
.attr("stroke-width", 0.1)
.attr("d", d3.geoPath());
svg
.append("g")
.attr("fill-opacity", 0.9)
.attr("stroke", "#fff")
.attr("stroke-width", 1)
.selectAll("circle")
.data(intra.sort((a, b) => d3.ascending(+a.fij, +b.fij)))
.join("circle")
.attr("id", (d) => d.id)
.attr("fill", "#739ec9")
.attr("r", (d) => radius(d.fij))
.attr("cx", (d) => getcentroids.get(+d.id)[0])
.attr("cy", (d) => getcentroids.get(+d.id)[1]);
return svg.node();
}