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