Graphs

JFreeChart is an open-source framework for the programming language Java, which allows the creation of complex charts in a simple way.
JFreeChart also works with GNU Classpath, a free software implementation of the standard class library for the Java programming language.
JFreeChart supports a number of various charts, including combined charts. Following chart types are supported:
  • X-Y charts (line, spline and scatter). Time axis is possible.
  • Pie charts
  • Gantt charts
  • Bar charts (horizontal and vertical, stacked and independent). It also has built-in histogram plotting.
  • Single valued (thermometer, compass, speedometer) that can then be placed over map.
  • Various specific charts (wind chart, polar chart, bubbles of varying size, etc).
Apart charts, it is possible to place various markers on the plot.
JFreeChart automatically draws the axis scales and legends. Charts in GUI automatically get the capability to zoom in with mouse and change some settings through local menu. The existing charts can be easily updated through the listeners that the library has on its data collections.

Download JfreeCharts and Install it:


 
Installation steps for JSP:
1)Extract the file from the JFreechart download.
2)Put the jfreechart-1.0.13.jar and jcommon-1.0.16.jar files in the lib folder of your local server or set path for it.
3)Check with sample codes and should work for the JSP.

Examples with sample code and explanation:

No comments:

Post a Comment