Differential D350 Diff 976 branches/5.2.x/core/units/general/libchart/classes/view/chart/LineChart.php
Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/core/units/general/libchart/classes/view/chart/LineChart.php
Show All 26 Lines | |||||
class LibchartLineChart extends LibchartBarChart { | class LibchartLineChart extends LibchartBarChart { | ||||
/** | /** | ||||
* Creates a new line chart. | * Creates a new line chart. | ||||
* Line charts allow for XYDataSet and XYSeriesDataSet in order to plot several lines. | * Line charts allow for XYDataSet and XYSeriesDataSet in order to plot several lines. | ||||
* | * | ||||
* @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 LibchartLineChart($width = 600, $height = 250) { | public function __construct($width = 600, $height = 250) { | ||||
parent::LibchartBarChart($width, $height); | parent::__construct($width, $height); | ||||
$this->plot->setGraphPadding(new LibchartPadding(5, 30, 50, 50)); | $this->plot->setGraphPadding(new LibchartPadding(5, 30, 50, 50)); | ||||
} | } | ||||
/** | /** | ||||
* Computes the layout. | * Computes the layout. | ||||
*/ | */ | ||||
protected function computeLayout() { | protected function computeLayout() { | ||||
▲ Show 20 Lines • Show All 148 Lines • ▼ Show 20 Line(s) | |||||
$this->printLine(); | $this->printLine(); | ||||
if ($this->hasSeveralSerie) { | if ($this->hasSeveralSerie) { | ||||
$this->printCaption(); | $this->printCaption(); | ||||
} | } | ||||
} | } | ||||
$this->plot->render($fileName); | $this->plot->render($fileName); | ||||
} | } | ||||
} | } | ||||
No newline at end of file |