Differential D350 Diff 976 branches/5.2.x/core/units/general/libchart/classes/view/chart/VerticalBarChart.php
Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/core/units/general/libchart/classes/view/chart/VerticalBarChart.php
Show All 30 Lines | |||||
private $emptyToFullRatio; | private $emptyToFullRatio; | ||||
/** | /** | ||||
* Creates a new vertical bar chart | * Creates a new vertical bar 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 LibchartVerticalBarChart($width = 600, $height = 250) { | public function __construct($width = 600, $height = 250) { | ||||
parent::LibchartBarChart($width, $height); | parent::__construct($width, $height); | ||||
$this->emptyToFullRatio = 1 / 5; | $this->emptyToFullRatio = 1 / 5; | ||||
$this->plot->setGraphPadding(new LibchartPadding(5, 30, 50, 50)); | $this->plot->setGraphPadding(new LibchartPadding(5, 30, 50, 50)); | ||||
} | } | ||||
/** | /** | ||||
* Computes the layout. | * Computes the layout. | ||||
*/ | */ | ||||
▲ Show 20 Lines • Show All 157 Lines • ▼ Show 20 Line(s) | |||||
$this->printBar(); | $this->printBar(); | ||||
if ($this->hasSeveralSerie) { | if ($this->hasSeveralSerie) { | ||||
$this->printCaption(); | $this->printCaption(); | ||||
} | } | ||||
} | } | ||||
$this->plot->render($fileName); | $this->plot->render($fileName); | ||||
} | } | ||||
} | } | ||||
No newline at end of file |