function chart_mixed_axis_range_label in Google Chart Tools: Image Charts 5
Same name and namespace in other branches
- 6 chart.module \chart_mixed_axis_range_label()
- 7 chart.module \chart_mixed_axis_range_label()
Create a mixed axis range label.
Labels must be nested by axis and index:
$chart['#mixed_axis_labels'][CHART_AXIS_X_BOTTOM][0][] = chart_mixed_axis_label(t('Monday'));
$chart['#mixed_axis_labels'][CHART_AXIS_X_BOTTOM][0][] = chart_mixed_axis_label(t('Tuesday'));
$chart['#mixed_axis_labels'][CHART_AXIS_X_BOTTOM][0][] = chart_mixed_axis_label(t('Wednesday'));
$chart['#mixed_axis_labels'][CHART_AXIS_Y_LEFT][1][] = chart_mixed_axis_range_label(0, 50);
$chart['#mixed_axis_labels'][CHART_AXIS_Y_LEFT][2][] = chart_mixed_axis_label(t('Min'));
$chart['#mixed_axis_labels'][CHART_AXIS_Y_LEFT][2][] = chart_mixed_axis_label(t('Max'));
Parameters
string $start:
string $end:
Return value
array
1 call to chart_mixed_axis_range_label()
- system_charts_build in contrib/
system_charts/ system_charts.module - Gather data and build a chart API structure.
File
- ./
chart.module, line 808 - Google Charting API. Developed by Tj Holowaychuk
Code
function chart_mixed_axis_range_label($start, $end) {
return array(
'#start' => $start,
'#end' => $end,
);
}