You are here

function commerce_reports_charts_type_info in Commerce Reporting 7.4

Implements hook_charts_type_info().

File

./commerce_reports.module, line 116
Module file for Commerce Reports.

Code

function commerce_reports_charts_type_info() {
  $chart_types['geomap'] = array(
    'label' => t('Geomap'),
    // If this chart supports both an X and Y axis, set this to
    // CHARTS_DUAL_AXIS. If only a single axis is supported (e.g. pie), then
    // set this to CHARTS_SINGLE_AXIS.
    'axis' => CHARTS_DUAL_AXIS,
    // Many charting libraries always refer to the main axis as the "y-axis",
    // even if the chart's main axis is horizontal. An example of this is a
    // bar chart, where the values are along the horizontal axis.
    // Meaning x/y axis are flipped.
    'axis_inverted' => TRUE,
  );
  return $chart_types;
}