Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var objects = svg.append("svg")
- .classed("objects", true)
- .attr("width", width)
- .attr("height", height);
- objects.append("svg:line")
- .classed("trendline", true)
- .attr("x1", x(xMin))
- .attr("y1", y(lineIntercept + xMin*lineSlope))
- .attr("x2", x(xMax))
- .attr("y2", y(lineIntercept + xMax*lineSlope))
- .attr("stroke", colorVal)
- .attr("stroke-width", 2);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement