links = {
const link = svg.append("g")
.attr("fill", "none")
.selectAll("g")
.data(data.links.sort((a, b) => b.width - a.width))
.join("g")
.attr("stroke", d => d3WithSankey.color("#dddddd"))
.style("mix-blend-mode", "multiply");
link.append("path")
.attr("d", d3WithSankey.sankeyLinkHorizontal())
.attr("stroke-width", d => Math.max(1, d.width));
link.append("title")
.text(d => `${d.source.name} → ${d.target.name}\n${d.value.toLocaleString()}`);
return link
}