function _google_charts in Charts 7
Same name and namespace in other branches
- 6 google_charts/google_charts.inc \_google_charts()
@author Bruno Massa http://drupal.org/user/67164 @file Use Google Charts on your site.
2 calls to _google_charts()
- _google_charts_chart in google_charts/
google_charts.inc - Convert all Chart-level data.
- _google_charts_series in google_charts/
google_charts.inc - Convert all Series-level data.
File
- google_charts/
google_charts.inc, line 8 - @author Bruno Massa http://drupal.org/user/67164
Code
function _google_charts($type) {
$types = array(
'line2D' => array(
'legend' => TRUE,
'typecode' => 'lc',
'value_attributes' => FALSE,
),
'hbar2D' => array(
'legend' => TRUE,
'typecode' => 'bhg',
'value_attributes' => FALSE,
),
'vbar2D' => array(
'legend' => TRUE,
'typecode' => 'bvg',
'value_attributes' => FALSE,
),
'pie2D' => array(
'legend' => FALSE,
'typecode' => 'p',
'value_attributes' => TRUE,
),
'pie3D' => array(
'legend' => FALSE,
'typecode' => 'p3',
'value_attributes' => TRUE,
),
'venn' => array(
'legend' => TRUE,
'typecode' => 'v',
'value_attributes' => FALSE,
),
'scatter' => array(
'legend' => FALSE,
'typecode' => 's',
'value_attributes' => FALSE,
),
);
return $types[$type];
}