function QuantChartChartAPI::y_range in Quant 7
Add an y-axis range to the chart
Parameters
$min: The minimum value for the y-axis
$max: The maximum value for the y-axis
3 calls to QuantChartChartAPI::y_range()
- QuantChartChartAPI::chart_count in plugins/
QuantChartChartAPI.inc - Fill a count-type chart with data
- QuantChartChartAPI::chart_multiple in plugins/
QuantChartChartAPI.inc - Fill a multiple datapoint chart with data
- QuantChartChartAPI::chart_single in plugins/
QuantChartChartAPI.inc - Fill a single datapoint chart with data
File
- plugins/
QuantChartChartAPI.inc, line 233
Class
- QuantChartChartAPI
- QuantChart plugin class to generate charts using chart.module (Chart API)
Code
function y_range($min, $max) {
$max = max($max, 1);
// Prevent a max that's zero
$this->chart['#mixed_axis_labels'][CHART_AXIS_Y_LEFT][0][] = chart_mixed_axis_range_label($min, $max);
}