diff --git a/libraries/chart/pma_pchart_single.php b/libraries/chart/pma_pchart_single.php index d89c59646..a64a6a2cd 100644 --- a/libraries/chart/pma_pchart_single.php +++ b/libraries/chart/pma_pchart_single.php @@ -26,13 +26,13 @@ abstract class PMA_pChart_single extends PMA_pChart_chart $this->dataSet->SetAbsciseLabelSerie("Keys"); - $xLabel = $this->getXLabel(); - if (empty($xLabel)) { - $this->setXLabel($keys[0]); - } $yLabel = $this->getYLabel(); if (empty($yLabel)) { - $this->setYLabel($keys[1]); + $this->setYLabel($keys[0]); + } + $xLabel = $this->getXLabel(); + if (empty($xLabel)) { + $this->setXLabel($keys[1]); } $this->dataSet->SetXAxisName($this->getXLabel());