javachartsjfreechartdynamic-image-generation

Chart image generation based on historical data?


I was thinking about a back-end process that I can run once per day and generate/save to disk chart images similar to this:

historical data chart

Can this be done in Java or is there any other method that I am not familiar with?

Thanks!


Solution

  • Use one of the methods provided by org.jfree.chart.ChartUtils, formerly ChartUtilities as discussed here, to save completed chart images to the file system or write chart images to an output stream. Your application will suggest the appropriate space-time tradeoff, but nothing precludes your mixing strategies as need warrants.