/** * Sets an interval for where labels are shown on the axis. * * The label interval is rounded to nearest integer value. * * @param double $labelInterval The interval with which labels are shown * @param int $level Label level * * @return void */ function setLabelInterval($labelInterval = 'auto', $level = 1) { if (is_array($labelInterval)) { parent::setLabelInterval($labelInterval); } elseif ($labelInterval == 'auto') { parent::setLabelInterval(1); } else { parent::setLabelInterval(round($labelInterval)); } }
/** * Get the axis intersection pixel position * * This is only to be called prior to output! I.e. between the user * invokation of Image_Graph::done() and any actual output is performed. * This is because it can change the axis range. * * @param double $value the intersection value to get the pixel-point for * * @return double The pixel position along the axis * @access private */ function _intersectPoint($value) { if ($value <= 0 && $value !== 'max' && $value !== 'min') { $value = 1; } return parent::_intersectPoint($value); }