Is there a library to generate same charts for the same data, both in Java and Javascript?
My task is both:
Pardon the really late reply, but how about using Highcharts? I'm looking for the link which provides you more information as I'm typing this, but Highcharts provides a server-side 'export' feature. What it basically does is it allows you to download a copy of an image without actually requiring a browser.
I implemented this feature so that I could take take request parameters, query a data-store, plot those numbers using Highcharts to a desired graph and embed those results in an email (and of course, send the email out to the recipients).
More information here: http://www.highcharts.com/component/content/article/2-articles/news/52-serverside-generated-charts
AND
here: https://github.com/one2team/highcharts-serverside-export