If you have your gadget on a Google Spreadsheet, open the gadget menu, and select 'Publish gadget'. Paste the provided URL into your web page.
If you have your gadget on iGoogle, open the gadget preferences, select 'Share this gadget', select 'copy and paste a link to this gadget' and check the 'Send my settings for this gadget'. Paste the provided URL into your web page.
On any other web page, if you have acces to the source code, paste the XML of the gadget wrapped inside an iframe on the page. Be sure to set the data source preference in the XML.
The Chart API provides a simple way to create image charts of various kinds by sending a formatted URL that includes both the data and chart configuration options to a Google server. The Chart API includes a closed set of charts with various options. The Chart API datasets are limited to the size of a URL (roughly 2K).
The Visualization API provides a way to connect visualizations and data sources over the web and to publish them:
If you call validateResponse() of class google.visualization.GadgetHelper, the default error message handling will check for errors and send a message to the user in case of an error.
If you do not want to use the default error handling, you can check for errors yourself by calling the isError() method of the google.visualization.QueryResponse class and issuing your own message for the error. Use methods getMessage() and getDetailedMessage() to obtain more information about the error.
There may be several reasons causing your visualization not to show.
Running third party code directly on your web site poses inherent risks. Gadgets run in a separate iframe, and are generally safer than JavaScript embedded in your web page. Google makes no promises or representations about the gadgets' and applications' performance, quality, security, or content. Visualization applications and gadgets that do not comply with the Google Visualization API Terms of Service may be removed from the galleries.
As described in the Terms of Service, we may decline to include and display content that violates our program policy by displaying or linking to:
Developers that create visualizations that collect data, agree to maintain and link to a legally adequate privacy policy. Additionally, we require developers to ensure that their visualization is secure, and to maintain their gadget or application as long as it resides in the visualization directory.
These policies may be revised from time to time without notice.
There are various ways you can promote your gadget and help other users discover it. Getting more people to use your gadgets is rewarding and helps increase your gadget's ranking in the Gadget content directory. Here's a few recommended ways to get started: