function _charts_examples_column_simple in Charts 7.2
2 calls to _charts_examples_column_simple()
- _charts_examples_bar_simple in includes/
charts.examples.inc - _charts_examples_column_stacking in includes/
charts.examples.inc
File
- includes/
charts.examples.inc, line 119
Code
function _charts_examples_column_simple() {
$chart = array(
'#type' => 'chart',
'#chart_type' => 'column',
'#title' => t('Column simple'),
);
$chart['male'] = array(
'#type' => 'chart_data',
'#title' => t('Male'),
'#data' => array(
10,
20,
30,
),
'#suffix' => 'lbs',
);
$chart['female'] = array(
'#type' => 'chart_data',
'#title' => t('Female'),
'#data' => array(
12,
22,
32,
),
'#suffix' => 'lbs',
);
$chart['xaxis'] = array(
'#type' => 'chart_xaxis',
'#labels' => array(
'Jan',
'Feb',
'Mar',
),
);
$example['chart'] = $chart;
return $example;
}