fixed custom axis lables on the multi chart.

This commit is contained in:
Martynas Mickevicius
2010-07-09 16:29:14 +03:00
parent 6b806f2047
commit 3df1126c85

View File

@@ -35,8 +35,17 @@ abstract class PMA_pChart_multi extends PMA_pChart_chart
$this->dataSet->RemoveSerie("Keys"); $this->dataSet->RemoveSerie("Keys");
$this->dataSet->SetAbsciseLabelSerie("Keys"); $this->dataSet->SetAbsciseLabelSerie("Keys");
$this->dataSet->SetXAxisName($keys[0]); $xLabel = $this->getXLabel();
$this->dataSet->SetYAxisName($keys[1]); if (empty($xLabel)) {
$this->setXLabel($keys[0]);
}
$yLabel = $this->getYLabel();
if (empty($yLabel)) {
$this->setYLabel($keys[1]);
}
$this->dataSet->SetXAxisName($this->getXLabel());
$this->dataSet->SetYAxisName($this->getYLabel());
} }
protected function setGraphAreaDimensions() protected function setGraphAreaDimensions()