diff --git a/libchart/classes/view/chart/HorizontalBarChart.php b/libchart/classes/view/chart/HorizontalBarChart.php index d430f72..a29fa71 100644 --- a/libchart/classes/view/chart/HorizontalBarChart.php +++ b/libchart/classes/view/chart/HorizontalBarChart.php @@ -34,8 +34,8 @@ class HorizontalBarChart extends BarChart { * @param integer width of the image * @param integer height of the image */ - public function HorizontalBarChart($width = 600, $height = 250) { - parent::BarChart($width, $height); + public function __construct($width = 600, $height = 250) { + parent::__construct($width, $height); $this->emptyToFullRatio = 1 / 5; $this->plot->setGraphPadding(new Padding(5, 30, 30, 50)); @@ -242,4 +242,4 @@ public function render($fileName = null) { $this->plot->render($fileName); } } -?> \ No newline at end of file +?>