Thursday, 29 June 2017

Making a dashed line in d3

Making a dashed line in d3

svg.append("path") .attr("class", "line") .style("stroke-dasharray", ("3, 3"))
svg.append("g") .attr("class", "x axis") .attr("transform", "translate(0," + height + ")") .style("stroke-dasharray", ("3, 3")) .call(xAxis);
svg.append("g") .attr("class", "y axis") .style("stroke-dasharray", ("3, 3")) .call(yAxis);

No comments:

Post a Comment

Note: only a member of this blog may post a comment.

Blog Archive