fixed an issue when a serie name was not set, thus generating a warning

This commit is contained in:
Martynas Mickevicius
2010-08-13 14:50:21 +03:00
parent eb3f96ac51
commit 0b90202b8f
3 changed files with 3 additions and 1 deletions

View File

@@ -296,7 +296,7 @@ abstract class PMA_pChart_chart extends PMA_chart
$this->prepareChart(); $this->prepareChart();
//$this->chart->debugImageMap(); //$this->chart->debugImageMap();
$this->chart->printErrors('GD'); //$this->chart->printErrors('GD');
// check if a user wanted a chart in one part // check if a user wanted a chart in one part
if ($this->isContinuous()) { if ($this->isContinuous()) {

View File

@@ -49,6 +49,7 @@ abstract class PMA_pChart_single extends PMA_pChart_chart
$this->dataSet->SetXAxisName($this->getXLabel()); $this->dataSet->SetXAxisName($this->getXLabel());
$this->dataSet->SetYAxisName($this->getYLabel()); $this->dataSet->SetYAxisName($this->getYLabel());
$this->dataSet->SetSerieName($this->getYLabel(), "Values");
} }
} }

View File

@@ -26,6 +26,7 @@ class PMA_pChart_single_bar extends PMA_pChart_single
protected function drawChart() protected function drawChart()
{ {
// Draw the bar chart // 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); $this->chart->drawStackedBarGraph($this->dataSet->GetData(),$this->dataSet->GetDataDescription(),70);
} }
} }