views:

732

answers:

2

I have an application hosted in Java on AppEngine and I would like to add a feature where users can get a graphical summary of their data. BufferedImage is listed as not supported on AppEngine. The display process will be simple--a series of small squares in one of two colors.

Regards,

Kent

+2  A: 

If you don't find a better solution, you could delegate the graph generation to Google Charts

Guido
That's what I would do. +1
Copas
Unfortunately it's not a format that fits nicely into a graph. Perhaps I need to rethink the format in that case... As far as I can tell there isn't a lightweight image library from Java apart from the code that ships in the JRE and I don't want to write a little right now.
Kent Beck
I did change the format to fit a graph. Then I had to use AppEngine's URLFetch to get the image from Google Charts and stream it back to the requester. And it mostly works! Here is the little piece of flair showing the number of tests run through JUnit Max per hour for the last ten hours: http://junitmax.appspot.com/flair
Kent Beck
Why fetch it using URLFetch? The whole idea of Google Charts is that you can embed a charts URL directly in the page and have it show the user a chart - there's no need for the indirection via your app.
Nick Johnson
A: 

Check out the docs on the image service in App Engine. You can probably do what you want with the composition functionality.

Nick Johnson