You are here

README.txt in Google Chart Tools 7

Google Chart Tools - Drupal module
Display live data on your site using Google Chart Tools (http://code.google.com/apis/chart/).
Google Chart Tools provides a simple API to Build custom charts, useing your Drupal module.

The module contain an example module which demonstrate how this module can be use.

 
  $settings['chart']['chartOne'] = array(  
    'header' => array('Apple', 'Banana', 'Mango'),
    'rows' => array(array(12, 6, 8)),
    'columns' => array('Fruit count'),
    'chartType' => 'PieChart',
    'containerId' =>  'content',
    'options' => array( 
      'forceIFrame' => FALSE, 
      'title' => 'Fruit count',
      'width' => 800,
      'height' => 400  
    )   
  );

  // Draw it.
  draw_chart($settings); 

* The 'containterId' is optional and if it's not set the 'containerId' will be taken from chart ID ($settings['chart']['chart_id']).
* The 'options' are optional as well.

* The draw_chart() function returns an array which contains:
  'title' - Title of the chart, 
  'id' - the chart ID, 
  'weight' - A weight can be add to the chart array (default to 0),
  'markup' - The HTML markup, which can be use.

For Views integration instruction, see the README.txt in the "Google Chart Tools Views" module.

File

README.txt
View source
  1. Google Chart Tools - Drupal module
  2. Display live data on your site using Google Chart Tools (http://code.google.com/apis/chart/).
  3. Google Chart Tools provides a simple API to Build custom charts, useing your Drupal module.
  4. The module contain an example module which demonstrate how this module can be use.
  5. $settings['chart']['chartOne'] = array(
  6. 'header' => array('Apple', 'Banana', 'Mango'),
  7. 'rows' => array(array(12, 6, 8)),
  8. 'columns' => array('Fruit count'),
  9. 'chartType' => 'PieChart',
  10. 'containerId' => 'content',
  11. 'options' => array(
  12. 'forceIFrame' => FALSE,
  13. 'title' => 'Fruit count',
  14. 'width' => 800,
  15. 'height' => 400
  16. )
  17. );
  18. // Draw it.
  19. draw_chart($settings);
  20. * The 'containterId' is optional and if it's not set the 'containerId' will be taken from chart ID ($settings['chart']['chart_id']).
  21. * The 'options' are optional as well.
  22. * The draw_chart() function returns an array which contains:
  23. 'title' - Title of the chart,
  24. 'id' - the chart ID,
  25. 'weight' - A weight can be add to the chart array (default to 0),
  26. 'markup' - The HTML markup, which can be use.
  27. For Views integration instruction, see the README.txt in the "Google Chart Tools Views" module.