You are here

function charts_graphs_google_charts_chartgraph_provider in Charts and Graphs 6.2

Same name and namespace in other branches
  1. 7 apis/charts_graphs_google_charts/charts_graphs_google_charts.module \charts_graphs_google_charts_chartgraph_provider()

Implementation of hook_chartgraph_provider().

1 call to charts_graphs_google_charts_chartgraph_provider()
ChartsGraphsGoogleCharts::get_chart in apis/charts_graphs_google_charts/charts_graphs_google_charts.class.inc
Function that renders data.

File

apis/charts_graphs_google_charts/charts_graphs_google_charts.module, line 10
drupal module file implementing Google Charts charting.

Code

function charts_graphs_google_charts_chartgraph_provider() {
  $provider = array(
    'path' => dirname(__FILE__) . '/charts_graphs_google_charts.class.inc',
    // must be full path
    'clazz' => 'ChartsGraphsGoogleCharts',
    // implementation class' name
    'name' => 'google-charts',
    // name used when invoking through a factory method
    'nice_name' => 'Google Charts',
    'chart_types' => array(
      'line' => t('Line'),
      'bar' => t('Bar'),
      'pie' => t('Pie'),
      'pie_3d' => t('3D Pie'),
      'area' => t('Area'),
      'side_bar' => t('Side Bar'),
      'stacked_side_bar' => t('Stacked Side Bar'),
      'queued_bar' => t('Queued Bar'),
      'stacked_bar' => t('Stacked Bar'),
    ),
    'themes' => array(),
  );
  return (object) $provider;
}