views:

385

answers:

3

I need to create some graphical representations of the usage of electricity by month. How do I go with it? What would be the simplest way?

Languages: Java, JSP

Thank you very much.

+1  A: 

Easy solution for me was outputting numerical arrays in the backend and displaying with flot (google javascript library). All you need to do is generate your series of points (e.g. something like ([1,0], [2,1.1], [3,1.4],[4, ] ... ).

Steve B.
+6  A: 

The best way is to use JFreeChart to produce an image from your data, and then display the image in the jsp.

alexmeia
A: 

You can use the Google Chart API or a Google Chart API Java wrapper. I wrote one: charts4j.

Julien Chastang