
The documentation on the chart module has a basic working example: <?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)); ?> Use that guide to write your query to populate your array Date: Thu, 23 May 2013 12:05:48 +0300 From: evakimathi@gmail.com To: skunkworks@lists.my.co.ke Subject: [Skunkworks] Drupal and google charts api Hi all, I come in peace! I have task: to display data (from db tables) to a chart (preferable google charts) on drupal. I have Drupal 7 and have intalled all the necessary modules. I need guidance on how to feed data from a query to the chart api module for display. Anyone been here before? -- __________________________________________________________________________ Out of clutter, find simplicity. From discord, find harmony. In the middle of difficulty, lies opportunity~Albert Einstein Eva Kimathi _______________________________________________ skunkworks mailing list skunkworks@lists.my.co.ke ------------ List info, subscribe/unsubscribe http://lists.my.co.ke/cgi-bin/mailman/listinfo/skunkworks ------------ Skunkworks Rules http://my.co.ke/phpbb/viewtopic.php?f=24&t=94 ------------ Other services @ http://my.co.ke