diff --git a/libchart/classes/view/chart/VerticalBarChart.php b/libchart/classes/view/chart/VerticalBarChart.php index bd05c1b..5477b15 100644 --- a/libchart/classes/view/chart/VerticalBarChart.php +++ b/libchart/classes/view/chart/VerticalBarChart.php @@ -34,8 +34,8 @@ class VerticalBarChart extends BarChart { * @param integer width of the image * @param integer height of the image */ - public function VerticalBarChart($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, 50, 50)); @@ -240,4 +240,4 @@ public function render($fileName = null) { $this->plot->render($fileName); } } -?> \ No newline at end of file +?>