/playfair

Compatibility layer for Google's charting systems

Primary LanguageJavaScript

Playfair.js

Convert your Google Image Charts visualizations to use the newer, non-deprecated Google Charts API!

Work in progress

Right now, this only supports pie charts since that's what was used in the Google Image Charts docs as a Hello World example. More types will be added soon.

Documentation

Open (or <iframe>) dist/playfair.html with your Google Image Charts options in a hash string instead of in a query string; for example: /dist/playfair.html#cht=p&chs=640x480&chd=t:10,20,30,40&chl=Hello|World|Whats|Up

Docs are forthcoming, probably, depending on whether someone (or I) can contribute docs without inadvertently infringing on Google's copyright. For now, use theirs.

Contributing

This uses grunt to handle building and testing.

Install the grunt interface with npm install -g grunt-cli (after you've installed Node, of course), install this project's dependencies with npm install and run the build and tests with grunt.