You are here

function quant_x_label in Quant 6

Add an x-axis label to the chart

Parameters

&$quant: A quant object

$label: The label for the x-axis

3 calls to quant_x_label()
_quant_generate_chart_count in includes/chart.inc
Take formatted data for a count chart and convert to a format that the charts can understand
_quant_generate_chart_multiple in includes/chart.inc
Take formatted data for a multi-point chart and convert to a format that the charts can understand
_quant_generate_chart_single in includes/chart.inc
Take formatted data for a single-point chart and convert to a format that the charts can understand

File

includes/chart.inc, line 268
Chart building functions

Code

function quant_x_label(&$quant, $label) {
  $quant->chart['#mixed_axis_labels'][CHART_AXIS_X_BOTTOM][0][] = chart_mixed_axis_label($label);
}