News Feed
Jobs Feed
Sections




News Archive
Looking for more information on how to do PHP the right way? Check out PHP: The Right Way

Duckout Blog:
Do Funny Stuff with the Google Charts API and PHP
March 26, 2013 @ 11:40:44

In this recent post to the Duckout blog, they show you how to hook your PHP-based (and database driven) application into the Google Charting API for chart/graph generation.

I think, whenever we see a chart in a magazine, in books or applications our brain say's to us Yeepie!!! Don't read these stupid texts or tables! Just look at the green or yellow line and hope that they are above the other lines or hope that your opinion is the biggest part of the pie¯. This saves us a lot of work and in my opinion we should concentrate on drawing beautiful colorized pie charts, instead of writing long boring articles. But the question is: ¯How do I draw these beautiful colorized pie charts? The simple answer is: you don't have to, because google will draw them for you and you just have to tell them what to draw via the google charts api.

The sample application is a "breakfast rating" tool that logs the results to a MySQL database via PDO calls. The results are then extracted and formated as JSON to be compatible with the Google Charts API data handling. Some sample Javascript is included showing how to call the Charts API with your data and get back a simple line graphing of the data from the database. You can see the application in action here for reference.

0 comments voice your opinion now!
google charts api json tutorial rating database pdo


blog comments powered by Disqus

Similar Posts

Christoph Dorn's Blog: Zend Server + FirePHP on AWS

Padraic Brady's Blog: ZF Blog App - Part 4: Design with Blueprint CSS & Zend_Layout

phpRiot.com: Implementing a WebDAV filesystem with PHP and SabreDAV

Zend Developer Zone: Creating Scalable Vector Graphs with PHP

Sanisoft Blog: Using CakePHP without a database


Community Events











Don't see your event here?
Let us know!


facebook package release framework application security podcast install unittest hhvm opinion performance component series database introduction symfony2 language hack composer

All content copyright, 2014 PHPDeveloper.org :: info@phpdeveloper.org - Powered by the Solar PHP Framework