Using The Google Charts API in Your Applications


The Google Charts api is documented at: link). Google Charts is a free Google service that allows you to generate graphs as images by calling a web service. The example below shows how a call is made to the Google Charts service. The service returns binary data in the form of a PNG image. We then load the PNG data into an Alpha Anywhere internal image with the ui_bitmap_png_load() function and finally display the image on an Xdialog.

po = *url_object(",20,20&chs=500x200&chl=Alpha Anywhere|ASP.Net|PHP")
ui_dlg_box("Google Charts","{image=tmp}")

This code produces this window:

images/googlecharts1 (1).jpg