diff --git a/libchart/classes/view/chart/PieChart.php b/libchart/classes/view/chart/PieChart.php index f2e5119..bf78522 100644 --- a/libchart/classes/view/chart/PieChart.php +++ b/libchart/classes/view/chart/PieChart.php @@ -32,8 +32,8 @@ class PieChart extends Chart { * @param integer width of the image * @param integer height of the image */ - public function PieChart($width = 600, $height = 250) { - parent::Chart($width, $height); + public function __construct($width = 600, $height = 250) { + parent::__construct($width, $height); $this->plot->setGraphPadding(new Padding(15, 10, 30, 30)); } @@ -264,4 +264,4 @@ public function render($fileName = null) { $this->plot->render($fileName); } } -?> \ No newline at end of file +?>