Statistical data can be viewed in tabular formats which will be informative for who are have the time to read all data items and categorize each in specific area to reach final one conclusion of what is the objective of these data [Decisions Making Assistance].
Graphs are more easy way to view various of data items in colored and standard format and this will give the conclusion of the data in graph quickly and easily to all graph viewers not only experts ones.
Adding charts and graphs in J2EE application can be applied by using open source library of JFreeChart, but I'm willing now to produce how it can be produced using another utility which is FusionCharts a product of InfoSoft Global.
And now in below steps I will explain how to use it in J2EE-JSF based web application:
- Add FusionCharts swf files in project directory /public_html/fusioncharts/*.swf [download from FusionCharts web site] - see figure in step2
- Add JSP page contains the renderer for the HTML of the generated charts - see figure in step 4 for more details
- Add another JSP page which will use this rendered above and will pass the relative XML data of the graph in format of set x value & y value - see figure 6 for more details
- Finally, the java code which will push the data in XML format the above jsp - see figure in step 8 for more details
- Ok, taste the FusionCharts in your web application now and get something like this

No comments:
Post a Comment