You are here

function charts_graphs_amcharts_chartgraph_provider in Charts and Graphs 6.2

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

Implementation of hook_chartgraph_provider().

File

apis/charts_graphs_amcharts/charts_graphs_amcharts.module, line 10
drupal module file implementing amcharts.

Code

function charts_graphs_amcharts_chartgraph_provider() {
  $provider = array(
    'path' => dirname(__FILE__) . '/charts_graphs_amcharts.class.inc',
    // must be full path
    'clazz' => 'ChartsGraphsAmcharts',
    // implementation class' name
    'name' => 'amcharts',
    // name used when invoking through a factory method
    'nice_name' => 'amCharts',
    'chart_types' => array(
      'line' => t('Line'),
      'area' => t('Area'),
      'donut' => t('Donut'),
      'donut_3d' => t('3D Donut'),
      'side_bar' => t('Side Bar'),
      'bar' => t('Bar'),
      'pie' => t('Pie'),
      'pie_3d' => t('3D Pie'),
      'stacked_area' => t('Stacked Area'),
      'stacker_bar' => t('Stacked Bar'),
      'stacked_side_bar' => t('Stacked Side Bar'),
      '100_stacked_bar' => t('100% Stacked Bar'),
      'bar_3d' => t('3D Bar'),
      '100_stacked_side_bar' => t('100% Stacked Side Bar'),
      'side_bar_3d' => t('3D Side Bar'),
    ),
    'themes' => array(),
  );
  return (object) $provider;
}