I'm currently building a system that will need to plot graph points, then export the graph as an image to be served in an email. This process is an addition to an existing process written in Java.
If there's a Java solution that would be best, but I have seen some graphing libraries, like d3.js, that are in JavaScript, and I may be able to work with that. From what I can tell d3.js does not have a feature to export graphs as a PNG or JPEG.