You are here

README.txt in Visualization API 7

Same filename and directory in other branches
  1. 8 README.txt
Visualization is a module for Drupal 7.x that provides a solid and easy
accessible way to visualize data. 

It provides a theme hook that takes a data array and some options and will then
render a chart in-place. It also provides a Views Display plugin so that users
can easily visualize data retrieved through Views.

The different charting libraries are pluggable through the CTools Plugin system.
The module provides an implementation for the Google Visualization API and
Highcharts. Other modules will be able to add their own charting libraries
by implementing an interface and making it known to CTools.

Modules can add their own charting libraries by implementing 
hook_ctools_plugin_directory (see CTools documentation) and by placing
.inc files with implementations of the VisualizationHandlerInterface interface. 

/**
 * Implements hook_ctools_plugin_directory().
 */
function visualization_ctools_plugin_directory($module, $plugin) {
  if (($module == 'visualization') && ($plugin == 'library')) {
    return 'includes/plugins';
  }
}

For information about implementing VisualizationHandlerInterface, check out
includes/interfaces.inc or use the current implementations of the
Google Visualization API or Highcharts as examples.

File

README.txt
View source
  1. Visualization is a module for Drupal 7.x that provides a solid and easy
  2. accessible way to visualize data.
  3. It provides a theme hook that takes a data array and some options and will then
  4. render a chart in-place. It also provides a Views Display plugin so that users
  5. can easily visualize data retrieved through Views.
  6. The different charting libraries are pluggable through the CTools Plugin system.
  7. The module provides an implementation for the Google Visualization API and
  8. Highcharts. Other modules will be able to add their own charting libraries
  9. by implementing an interface and making it known to CTools.
  10. Modules can add their own charting libraries by implementing
  11. hook_ctools_plugin_directory (see CTools documentation) and by placing
  12. .inc files with implementations of the VisualizationHandlerInterface interface.
  13. /**
  14. * Implements hook_ctools_plugin_directory().
  15. */
  16. function visualization_ctools_plugin_directory($module, $plugin) {
  17. if (($module == 'visualization') && ($plugin == 'library')) {
  18. return 'includes/plugins';
  19. }
  20. }
  21. For information about implementing VisualizationHandlerInterface, check out
  22. includes/interfaces.inc or use the current implementations of the
  23. Google Visualization API or Highcharts as examples.