Advertisement
Guest User

Untitled

a guest
Sep 22nd, 2017
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.32 KB | None | 0 0
  1. pathg.selectAll("path").remove();
  2.  
  3. return "M" +
  4. d3.polygonHull(d.values.map(function(i) { return [i.x, i.y]; }))
  5. .join("L") + "Z";
  6.  
  7. var poly = d3.polygonHull(d.values.map(function(i) { return [i.x, i.y]; }));
  8. if (poly){
  9. return "M" + poly.join("L") + "Z";
  10. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement