Pages

Saturday, November 14, 2009

Google visualization API with GWT on Netbeans


I was working with PIE chart from the google visualization APIs. You can get all in the Google Visualization API Gallery. Every visualization comes with details. Getting started is as simple as it is. Lets see how to use the in Netbeans.
1.      Create a GWT project in Netbeans using the GWT4NB plugin
2.      Add the gwt-visualization.jar in your libraries.
3.      Go to the Main.gwt.xml and add this line
4.      Open the welcomeGWT.html
1.       Add this script tag in the head section this scriplet will download the basic JS apis for all google services. Now you have to load your required one. You can easily do this in your body
2.      Now you need to add this script in your body . This will download the particular scripts for Pie Chart and tha table component.
  1. So finally your welcomGWT.html will look like this


   
       
        Main
       
   



   
   
       
       
   









No comments:

Post a Comment