FelixAkk / synthbio

Synthetic Biology project (Group 5/E, TU Delft, 2012)
4 stars 0 forks source link

Host our own exporting server for charts #96

Closed nielsAD closed 12 years ago

nielsAD commented 12 years ago

Exporting the graph needs a server to do the file serving. This could be a problem if you don't have an internet connection. https://github.com/highslide-software/highcharts.com/blob/master/exporting-server/index.php is how it is done in PHP. 110 lines shouldn't be hard to convert to a Java servlet.

jieter commented 12 years ago

looks easy, especially the svg version, which is just echoing the input back to the client...

atennapel commented 12 years ago

Something like this: http://aliirawan-wen.blogspot.nl/2011/10/using-batik-rasterizer-in-java.html :)

jieter commented 12 years ago

Almost there...

jieter commented 12 years ago

how nice, Github works for me ;)

jieter commented 12 years ago

hmm, looks like there still is a problem.

jieter commented 12 years ago

So the JPEG version still fails, png, pdf, svg do work.

jieter commented 12 years ago

The reason lies in my use of openjdk. Oracle's JDK should work.

nielsAD commented 12 years ago

Great!