I'm trying to set multiple attributes in d3 but I get an error for the stroke width attribute due to the dash.
I can get around this by chaining another attribute's call but I would like to keep them all in one call if I can.
Is this possible?
var edges = svg.selectAll("line")
.data(data.edges)
.enter()
.append("line")
.attr("stroke", "#ccc")
.attr("stroke-width", 3};