/** * GChart constructor. * * @param array $legend X-axis legend values * @param integer $width Chart width * @param integer $height Chart height */ function GChart($legend = array(), $width = 700, $height = 100) { parent::CompositeGraph(); $this->setLegend($legend); $this->setWidth($width); $this->setHeight($height); $this->setBackgroundColor(230, 242, 250); $this->setGridColor(0, 0, 0); $this->_max_value = 0; }
/** * GPointed constructor * * @param array $values Points Y values * @param integer $width Points set width * @param integer $height Points set height */ function GPointed($values = array(), $width = 250, $height = 150) { parent::CompositeGraph(); $this->setValues($values); $this->setWidth($width); $this->setHeight($height); $this->setBackgroundColor(255, 255, 255); $this->setColor(0, 0, 0); $this->setDotSize(7); $this->setPrintValues(false); }
/** * GCircledPoint constructor. */ function GCircledPoint() { parent::CompositeGraph(); $this->setBackgroundColor(255, 255, 255); }
/** * GLine constructor. * * @param array $values line Y values * @param integer $width Line width * @param <type> $height Line height */ function GLine($values = array(), $width = 250, $height = 150) { parent::CompositeGraph(); $this->setValues($values); $this->setWidth($width); $this->setHeight($height); $this->setBackgroundColor(255, 255, 255); $this->setShowBackground(false); $this->setShowValues(true); }