JSP: creating a graph

I need to create some graphical representations of electricity usage by month. How can I work with him? What's the easiest way?

Languages: Java, JSP

Many thanks.

0


source to share


3 answers


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



+8


source


A simple solution for me was outputting numeric arrays to the backend and displayed with flot (google javascript library). All you have to do is create your own sequence of points (for example, something like ([1,0], [2,1,1], [3,1,4], [4,] ...) ...



+1


source


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

0


source







All Articles