Pages

23 January 2013

Google Visualizations Project in Salesforce

Google Chart Tools provide a perfect way to visualize data on your website.Considering that the Salesforce Visualizations are in nascent state, Google visualizations prove to be a powerful alternative.

Here is a better way of having a reusable templates for Google visualizations which was made available on "wiki developer force".

Google Visualizations

Google Visualizations Install Instructions :
  1. Install Subclipse.
  2. Create a Force.com project configured for your Developer Edition org.
  3. In the Force.com IDE, choose the SVN Repository Exploring perspective in the upper right-hand corner. If this is not available, go to the Window menu, select "Open Perspective", choose "Other", then from the menu that appears, select "SVN Repository Exploring".
  4. Right-click in the SVN Repository Explorer and select New -> Repository Location.
  5. Specify the URL of the repository: http://apex-google-visualization.googlecode.com/svn/trunk/
  6. Click Finish.
  7. Expand the SVN repository until you see the GoogleVisualizations folder.
  8. Right-click on the src folder and choose Export.
  9. For the export directory, click the Browse button and navigate to the project in the file system. (You should select the project directory in this step, and not the src sub-directory.)
  10. Click 'Ok'.
  11. Use the pull-down menu in the upper right-hand corner of the IDE to switch to the Force.com perspective. If this is not available, go to the "Window" menu, select "Open Perspective", choose "Other", from the menu that appears, select "Force.com".
  12. Right click the src folder in your IDE project and select Refresh. This will update your workspace with the files retrieved from SVN.
  13. Right click the src folder again, and select Force.com > Save to Server. This will update the server with the files retrieved from SVN.
  14. Verify that your project builds without error.

Once the project is successfully installed to eclipse you would find that all the demo components for each chart type are available.


Making use of each component we may display charts of various types. (Column chart, line chart etc.;)





No comments:

Post a Comment