Differential D350 Diff 976 branches/5.2.x/core/units/general/libchart/classes/view/chart/PieChart.php
Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/core/units/general/libchart/classes/view/chart/PieChart.php
Show All 28 Lines | |||||
protected $pieCenterY; | protected $pieCenterY; | ||||
/** | /** | ||||
* Constructor of a pie chart. | * Constructor of a pie 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 | ||||
*/ | */ | ||||
public function LibchartPieChart($width = 600, $height = 250) { | public function __construct($width = 600, $height = 250) { | ||||
parent::LibchartChart($width, $height); | parent::__construct($width, $height); | ||||
$this->plot->setGraphPadding(new LibchartPadding(15, 10, 30, 30)); | $this->plot->setGraphPadding(new LibchartPadding(15, 10, 30, 30)); | ||||
} | } | ||||
/** | /** | ||||
* Computes the layout. | * Computes the layout. | ||||
*/ | */ | ||||
protected function computeLayout() { | protected function computeLayout() { | ||||
$this->plot->setHasCaption(true); | $this->plot->setHasCaption(true); | ||||
▲ Show 20 Lines • Show All 199 Lines • ▼ Show 20 Line(s) | |||||
$this->createImage(); | $this->createImage(); | ||||
$this->plot->printLogo(); | $this->plot->printLogo(); | ||||
$this->plot->printTitle(); | $this->plot->printTitle(); | ||||
$this->printPie(); | $this->printPie(); | ||||
$this->printCaption(); | $this->printCaption(); | ||||
$this->plot->render($fileName); | $this->plot->render($fileName); | ||||
} | } | ||||
} | } | ||||
No newline at end of file |