Skip to content
Snippets Groups Projects
Commit 3aefccd1 authored by Bruno Massa's avatar Bruno Massa
Browse files

New features:

* Google Charts now have stacked bars (vertical and horizontal)
parent 6d3883d4
No related branches found
Tags 6.x-1.0
No related merge requests found
......@@ -11,6 +11,8 @@ function _google_charts($type) {
'line2D' => array('typecode' => 'lc', 'attributes_per_value' => FALSE),
'hbar2D' => array('typecode' => 'bhg', 'attributes_per_value' => FALSE),
'vbar2D' => array('typecode' => 'bvg', 'attributes_per_value' => FALSE),
'hbar2Ds' => array('typecode' => 'bhs', 'attributes_per_value' => FALSE),
'vbar2Ds' => array('typecode' => 'bvs', 'attributes_per_value' => FALSE),
'pie2D' => array('typecode' => 'p', 'attributes_per_value' => TRUE),
'pie3D' => array('typecode' => 'p3', 'attributes_per_value' => TRUE),
'venn' => array('typecode' => 'v', 'attributes_per_value' => FALSE),
......@@ -224,7 +226,7 @@ function _google_charts_series(&$chart, &$data) {
// Return the series of data
if (empty($chart_data)) {
return t('No enough data to create a chart.');
return t('No enough data to create a chabvgrt.');
}
// Insert data
......
......@@ -21,7 +21,7 @@ function google_charts_charts_info() {
'file' => drupal_get_path('module', 'google_charts') .'/google_charts.inc',
'name' => t('Google Chart'),
'render' => '_google_charts_render',
'types' => array('line2D', 'hbar2D', 'vbar2D', 'pie2D', 'pie3D', 'venn', 'scatter'),
'types' => array('line2D', 'hbar2D', 'vbar2D', 'hbar2Ds', 'vbar2Ds', 'pie2D', 'pie3D', 'venn', 'scatter'),
),
);
}
......@@ -33,5 +33,7 @@ function google_charts_chart_types() {
return array(
'venn' => t('Venn'),
'scatter' => t('Scatter Plot'),
'hbar2Ds' => t('Horizontal Bar Stacked 2D'),
'vbar2Ds' => t('Vertical Bar Stacked 2D'),
);
}
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment