Code cleanup, mostly added extra spaces
This commit is contained in:
@@ -54,7 +54,7 @@ function PMA_chart_profiling($data)
|
||||
{
|
||||
$chartData = array();
|
||||
foreach($data as $dataValue) {
|
||||
$value = (int)($dataValue['Duration']*1000000);
|
||||
$value = (int)($dataValue['Duration'] * 1000000);
|
||||
$key = ucwords($dataValue['Status']);
|
||||
$chartData[$key] = $value;
|
||||
}
|
||||
@@ -247,10 +247,10 @@ function PMA_chart_results($data, &$chartSettings)
|
||||
function PMA_handle_chart_err($errors)
|
||||
{
|
||||
if (in_array(ERR_NO_GD, $errors)) {
|
||||
PMA_warnMissingExtension('GD', false, 'GD extension is needed for charts.');
|
||||
PMA_warnMissingExtension('GD', false, __('GD extension is needed for charts.'));
|
||||
}
|
||||
else if (in_array(ERR_NO_JSON, $errors)) {
|
||||
PMA_warnMissingExtension('JSON', false, 'JSON encoder is needed for chart tooltips.');
|
||||
PMA_warnMissingExtension('JSON', false, __('JSON encoder is needed for chart tooltips.'));
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -31,7 +31,7 @@ class PMA_pChart_multi_bar extends PMA_pChart_multi
|
||||
parent::drawChart();
|
||||
|
||||
// Draw the bar chart
|
||||
$this->chart->drawBarGraph($this->dataSet->GetData(),$this->dataSet->GetDataDescription(),70);
|
||||
$this->chart->drawBarGraph($this->dataSet->GetData(), $this->dataSet->GetDataDescription(), 70);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -31,8 +31,8 @@ class PMA_pChart_multi_line extends PMA_pChart_multi
|
||||
parent::drawChart();
|
||||
|
||||
// Draw the bar chart
|
||||
$this->chart->drawLineGraph($this->dataSet->GetData(),$this->dataSet->GetDataDescription());
|
||||
$this->chart->drawPlotGraph($this->dataSet->GetData(),$this->dataSet->GetDataDescription(),3,1,-1,-1,-1,TRUE);
|
||||
$this->chart->drawLineGraph($this->dataSet->GetData(), $this->dataSet->GetDataDescription());
|
||||
$this->chart->drawPlotGraph($this->dataSet->GetData(), $this->dataSet->GetDataDescription(), 3, 1, -1, -1, -1, TRUE);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -91,8 +91,9 @@ class PMA_pChart_multi_radar extends PMA_pChart_multi
|
||||
$borderOffset += 40;
|
||||
|
||||
// Draw the radar chart
|
||||
$this->chart->drawRadarAxis($this->dataSet->GetData(),$this->dataSet->GetDataDescription(),TRUE,$borderOffset,120,120,120,230,230,230,-1,2);
|
||||
$this->chart->drawFilledRadar($this->dataSet->GetData(),$this->dataSet->GetDataDescription(),50,$borderOffset);
|
||||
$this->chart->drawRadarAxis($this->dataSet->GetData(), $this->dataSet->GetDataDescription(), TRUE, $borderOffset,
|
||||
120, 120, 120, 230, 230, 230, -1, 2);
|
||||
$this->chart->drawFilledRadar($this->dataSet->GetData(), $this->dataSet->GetDataDescription(), 50, $borderOffset);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -31,8 +31,8 @@ class PMA_pChart_Pie extends PMA_pChart_multi
|
||||
protected function prepareDataSet()
|
||||
{
|
||||
// Dataset definition
|
||||
$this->dataSet->AddPoint(array_values($this->data),"Values");
|
||||
$this->dataSet->AddPoint(array_keys($this->data),"Keys");
|
||||
$this->dataSet->AddPoint(array_values($this->data), "Values");
|
||||
$this->dataSet->AddPoint(array_keys($this->data), "Keys");
|
||||
$this->dataSet->AddAllSeries();
|
||||
$this->dataSet->SetAbsciseLabelSerie("Keys");
|
||||
}
|
||||
@@ -75,7 +75,7 @@ class PMA_pChart_Pie extends PMA_pChart_multi
|
||||
// lower part. This is why we set an offset to the
|
||||
// Y middle coordiantes.
|
||||
$middleY - 15,
|
||||
120,PIE_PERCENTAGE,FALSE,60,30,10,1);
|
||||
120, PIE_PERCENTAGE, FALSE, 60, 30, 10, 1);
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -88,7 +88,7 @@ class PMA_pChart_Pie extends PMA_pChart_multi
|
||||
$this->getLabelHeight() + $this->getLegendMargin(TOP),
|
||||
$this->dataSet->GetData(),
|
||||
$this->dataSet->GetDataDescription(),
|
||||
250,250,250);
|
||||
250, 250, 250);
|
||||
}
|
||||
|
||||
protected function getLegendBoxWidth()
|
||||
|
@@ -28,7 +28,7 @@ class PMA_pChart_single_bar extends PMA_pChart_single
|
||||
{
|
||||
// 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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -27,8 +27,8 @@ class PMA_pChart_single_line extends PMA_pChart_single
|
||||
protected function drawChart()
|
||||
{
|
||||
// Draw the line chart
|
||||
$this->chart->drawLineGraph($this->dataSet->GetData(),$this->dataSet->GetDataDescription());
|
||||
$this->chart->drawPlotGraph($this->dataSet->GetData(),$this->dataSet->GetDataDescription(),3,1,-1,-1,-1,TRUE);
|
||||
$this->chart->drawLineGraph($this->dataSet->GetData(), $this->dataSet->GetDataDescription());
|
||||
$this->chart->drawPlotGraph($this->dataSet->GetData(), $this->dataSet->GetDataDescription(), 3, 1, -1, -1, -1, TRUE);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -79,8 +79,9 @@ class PMA_pChart_single_radar extends PMA_pChart_single
|
||||
// the least ammount that radar is away from the graph area side.
|
||||
$borderOffset += 40;
|
||||
|
||||
$this->chart->drawRadarAxis($this->dataSet->GetData(),$this->dataSet->GetDataDescription(),TRUE,$borderOffset,120,120,120,230,230,230,-1,2);
|
||||
$this->chart->drawFilledRadar($this->dataSet->GetData(),$this->dataSet->GetDataDescription(),50,$borderOffset);
|
||||
$this->chart->drawRadarAxis($this->dataSet->GetData(), $this->dataSet->GetDataDescription(),
|
||||
TRUE, $borderOffset, 120, 120, 120, 230, 230, 230, -1, 2);
|
||||
$this->chart->drawFilledRadar($this->dataSet->GetData(), $this->dataSet->GetDataDescription(), 50, $borderOffset);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -29,7 +29,7 @@ class PMA_pChart_stacked_bar extends PMA_pChart_multi
|
||||
parent::drawChart();
|
||||
|
||||
// Draw the bar chart
|
||||
$this->chart->drawStackedBarGraph($this->dataSet->GetData(),$this->dataSet->GetDataDescription(),70);
|
||||
$this->chart->drawStackedBarGraph($this->dataSet->GetData(), $this->dataSet->GetDataDescription(), 70);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user