You are here

function charts_openflash_chartgraph_provider in Charts and Graphs 6

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

Implementation of hook_charts_graphs_provider().

File

apis/charts_openflash/charts_openflash.module, line 10
drupal module file implementing openflash charting.

Code

function charts_openflash_chartgraph_provider() {
  $provider = array(
    'path' => dirname(__FILE__) . '/charts_openflash.class.inc',
    //must be full path
    'clazz' => 'ChartsOpenFlash',
    //implementation class' name
    'name' => 'open-flash',
    //name used when invoking through a factroy method
    'nice_name' => 'Open Flash Charts 2',
    'chart_types' => array(
      'line' => t('Line'),
      'bar' => t('Bar'),
      'bar_3d' => t('3D Bar'),
      'bar_cylinder' => t('Cylinder Bar'),
      'bar_cylinder_outline' => t('Outlined Cylinder Bar'),
      'bar_dome' => t('Dome Bar'),
      'bar_filled' => t('Filled Bar'),
      'bar_glass' => t('Glass Bar'),
      'bar_round' => t('Glass Bar with rounded tops and bottoms'),
      'bar_round_glass' => t('Glass Bar with rounded tops'),
      'bar_sketch' => t('Sketched Bar'),
      'pie' => t('Pie'),
    ),
  );
  return (object) $provider;
}