From 0b90202b8ffb79b8246bb987248311757080f7aa Mon Sep 17 00:00:00 2001 From: Martynas Mickevicius Date: Fri, 13 Aug 2010 14:50:21 +0300 Subject: [PATCH] fixed an issue when a serie name was not set, thus generating a warning --- libraries/chart/pma_pchart_chart.php | 2 +- libraries/chart/pma_pchart_single.php | 1 + libraries/chart/pma_pchart_single_bar.php | 1 + 3 files changed, 3 insertions(+), 1 deletion(-) diff --git a/libraries/chart/pma_pchart_chart.php b/libraries/chart/pma_pchart_chart.php index 3e8997030..bd3090985 100644 --- a/libraries/chart/pma_pchart_chart.php +++ b/libraries/chart/pma_pchart_chart.php @@ -296,7 +296,7 @@ abstract class PMA_pChart_chart extends PMA_chart $this->prepareChart(); //$this->chart->debugImageMap(); - $this->chart->printErrors('GD'); + //$this->chart->printErrors('GD'); // check if a user wanted a chart in one part if ($this->isContinuous()) { diff --git a/libraries/chart/pma_pchart_single.php b/libraries/chart/pma_pchart_single.php index 424516824..9935b090a 100644 --- a/libraries/chart/pma_pchart_single.php +++ b/libraries/chart/pma_pchart_single.php @@ -49,6 +49,7 @@ abstract class PMA_pChart_single extends PMA_pChart_chart $this->dataSet->SetXAxisName($this->getXLabel()); $this->dataSet->SetYAxisName($this->getYLabel()); + $this->dataSet->SetSerieName($this->getYLabel(), "Values"); } } diff --git a/libraries/chart/pma_pchart_single_bar.php b/libraries/chart/pma_pchart_single_bar.php index 009749fb6..3ea78cb8a 100644 --- a/libraries/chart/pma_pchart_single_bar.php +++ b/libraries/chart/pma_pchart_single_bar.php @@ -26,6 +26,7 @@ class PMA_pChart_single_bar extends PMA_pChart_single protected function drawChart() { // Draw the bar chart + // use stacked bar graph function, because it gives bars with alpha $this->chart->drawStackedBarGraph($this->dataSet->GetData(),$this->dataSet->GetDataDescription(),70); } }