function amcharts_chartgraph_provider in Charts and Graphs 6
Implementation of hook_charts_graphs_provider().
File
- apis/
amcharts/ amcharts.module, line 10 - drupal module file implementing amcharts.
Code
function amcharts_chartgraph_provider() {
$provider = array(
'path' => dirname(__FILE__) . '/amcharts.class.inc',
// must be full path
'clazz' => 'ChartsAmcharts',
// 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'),
'side_bar' => t('Side Bar'),
'bar' => t('Bar'),
'pie' => t('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'),
),
);
return (object) $provider;
}