Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/core/units/general/libchart/classes/view/chart/Chart.php
Show First 20 Lines • Show All 42 Lines • ▼ Show 20 Line(s) | |||||
protected $plot; | protected $plot; | ||||
/** | /** | ||||
* Abstract constructor of Chart. | * Abstract constructor of Chart. | ||||
* | * | ||||
* @param integer width of the image | * @param integer width of the image | ||||
* @param integer height of the image | * @param integer height of the image | ||||
*/ | */ | ||||
protected function LibchartChart($width, $height) { | protected function __construct($width, $height) { | ||||
// Creates the plot | // Creates the plot | ||||
$this->plot = new LibchartPlot($width, $height); | $this->plot = new LibchartPlot($width, $height); | ||||
$this->plot->setTitle("Untitled chart"); | $this->plot->setTitle("Untitled chart"); | ||||
$this->plot->setLogoFileName(dirname(__FILE__) . "/../../../images/PoweredBy.png"); | $this->plot->setLogoFileName(dirname(__FILE__) . "/../../../images/PoweredBy.png"); | ||||
} | } | ||||
/** | /** | ||||
* Checks the data model before rendering the graph. | * Checks the data model before rendering the graph. | ||||
Show All 35 Lines | |||||
/** | /** | ||||
* Sets the title. | * Sets the title. | ||||
* | * | ||||
* @param string New title | * @param string New title | ||||
*/ | */ | ||||
public function setTitle($title) { | public function setTitle($title) { | ||||
$this->plot->setTitle($title); | $this->plot->setTitle($title); | ||||
} | } | ||||
} | } | ||||
No newline at end of file |