Advertisement
Guest User

Untitled

a guest
Apr 24th, 2017
50
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. var objects = svg.append("svg")
  2. .classed("objects", true)
  3. .attr("width", width)
  4. .attr("height", height);
  5.  
  6. objects.append("svg:line")
  7. .classed("trendline", true)
  8. .attr("x1", x(xMin))
  9. .attr("y1", y(lineIntercept + xMin*lineSlope))
  10. .attr("x2", x(xMax))
  11. .attr("y2", y(lineIntercept + xMax*lineSlope))
  12. .attr("stroke", colorVal)
  13. .attr("stroke-width", 2);
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement