From 3df1126c8539d410c0bc376a04c94401dbc109ed Mon Sep 17 00:00:00 2001 From: Martynas Mickevicius Date: Fri, 9 Jul 2010 16:29:14 +0300 Subject: [PATCH] fixed custom axis lables on the multi chart. --- libraries/chart/pma_pchart_multi.php | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/libraries/chart/pma_pchart_multi.php b/libraries/chart/pma_pchart_multi.php index 9114b8e51..5570d2a2a 100644 --- a/libraries/chart/pma_pchart_multi.php +++ b/libraries/chart/pma_pchart_multi.php @@ -35,8 +35,17 @@ abstract class PMA_pChart_multi extends PMA_pChart_chart $this->dataSet->RemoveSerie("Keys"); $this->dataSet->SetAbsciseLabelSerie("Keys"); - $this->dataSet->SetXAxisName($keys[0]); - $this->dataSet->SetYAxisName($keys[1]); + $xLabel = $this->getXLabel(); + 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()