Total admission that I'm only a few weeks into D3, but I've sat here for a few hours now debugging to no avail.
Notice the two console.log(d)
statements buried in the anonymous functions. The one on the 'dummy' attribute returns the value, the one in the d
attribute does not.
What is different about those two?
var myEdges = [
{
in: "934e3e11-3f9b-11e9-b2b9-c54f58764873",
out: "936807a1-3f9b-11e9-b2b9-c54f58764873"
},
]
svg.selectAll('path:not([elementType=temp-path])').data(myEdges)
.enter().append('path')
.attr("fill", "none")
.attr("stroke", "blue")
.style("stroke-width", "2px")
.attr('dummy', function(d) { console.log(d); return d;})
.attr('d', d3.linkVertical()
.x(function(d) { console.log(d); return d.in; })
.y(function(d) { return d.out; }));