Download & Extend

Google chart API

Why Use Google Charts?

There are many reasons to choose Google Chart API over other methods such as Flash or Flex charts.

  • Free
  • Lightweight, reliable, no need for server side libraries or additional modules
  • Simple to extend and implement within the Drupal framework
  • Memory friendly. Thanks Google for taking the hit ;)

Example

An example using the 7.x version.

<?php
$chart
= array(
 
'#chart_id' => 'test_chart',
 
'#title' => t('Servings'),
 
'#type' => CHART_TYPE_PIE_3D,
);

$chart['#data']['fruits'] = 3;
$chart['#data']['meats']  = 2;
$chart['#data']['dairy']  = 5;

echo
theme('chart', array('chart' => $chart));
?>

Only local images are allowed.

Views integration

The chart_views module contained within the chart project provides integration with Views. The 6.x version requires Views Calc, while the 7.x version simply requires Views 7.x-3.x.

Documentation

Google code wiki provides documentation for hooks, examples, screenshots, and more. Keep in mind that this documentation has not been updated for the 7.x version although most of the API is the same. See the README.txt and chart.api.php files for more information.

Developers

Downloads

Recommended releases

Version Downloads Date Links
7.x-1.1 tar.gz (18.27 KB) | zip (22.54 KB) 2011-Aug-31 Notes
6.x-1.3 tar.gz (18.8 KB) | zip (22.62 KB) 2010-Nov-16 Notes

Development releases

Version Downloads Date Links
7.x-1.x-dev tar.gz (20.97 KB) | zip (25.14 KB) 2012-Mar-08 Notes
6.x-1.x-dev tar.gz (20.8 KB) | zip (24.69 KB) 2012-Jan-26 Notes

Project Information


Maintainers for Google chart API

  • eosrei - 22 commits
    last: 17 weeks ago, first: 40 weeks ago
  • boombatower - 59 commits
    last: 38 weeks ago, first: 2 years ago
  • ezra-g - 2 commits
    last: 1 year ago, first: 2 years ago
  • tjholowaychuk - 18 commits
    last: 3 years ago, first: 4 years ago

Issues for Google chart API

To avoid duplicates, please search before submitting a new issue.
All issues
Bug reports