title: Javascript export div to image
body: <p>I currently have a <code>div</code> tag that contains a bunch of other within it, and together they represent a line-graph. What I want to do is export this line-graph to an image(.png, .jpeg, etc) so that the user can download it. How can I do this?</p>
  
  <p>It's a JSP web page, using JavaScript, jQuery and the back-end is handled by Java. </p>