Fun with Google Charts API

Everyone loves a chart. Now you can easily use the Google Charts API to add some dynamism to your website

The Google Chart API returns a PNG-format image in response to a URL. Several types of image can be generated: line, bar, and pie charts for example. For each image type you can specify attributes such as size, colors, and labels.

Check out my fancy Negative Approach (I am 50/50 today) that I made simply by manipulating the URL string.

As described on InfoQ, Deepak Jois has written a wrapper for the API called gchartrb, which provides a clean, concise way to generate chart URLs using Ruby.

Featured Video
6
This content is rated TV-MA, and is for viewers 18 years or older. Are you of age?
Sorry, you are not old enough to view this content.

NYC taxis to compete with Uber

NYC taxis set to launch an app of their own, one billion people visit Facebook in a day, Chrome sets end date for Flash support and HTC's Vive VR headset gets delayed.

by Jeff Bakalar