/** * Description... * * @return void **/ public function graph() { if (isNull($this->_graph)) { $this->_graph = $this->_plot->graph(); } return $this->_graph; }
public function setLineColor(RM_Plot_Object $plot) { $plot->SetColor($this->_colors[$this->_colorIndex % count($this->_colors)]); $ind = $this->_colorIndex * 5; $tmp = 0; while ($ind >= count($this->_forms[$tmp]['colors'])) { $ind -= count($this->_forms[$tmp]['colors']); $tmp++; $tmp %= count($this->_forms); } $mark = $this->_forms[$tmp]; $plot->mark->setType($mark['name'], $mark['colors'][$ind], $mark['size']); $this->_colorIndex++; }
/** * Description... * * @return void **/ public function init() { $this->graph()->xaxis->SetLabelAngle(90); $this->graph()->SetMargin(100, 100, 70, $this->graph()->maxLabelLenth() * 9); $this->_plot->SetFillColor('#FAA619'); }