bugfix and a query result format changes according to the latest wiki article about charts.
This commit is contained in:
@@ -18,8 +18,8 @@ abstract class PMA_pChart_single extends PMA_pChart_chart
|
||||
$keys = array_keys($this->data);
|
||||
|
||||
// Dataset definition
|
||||
$this->dataSet->AddPoint($values[1], "Values");
|
||||
$this->dataSet->AddPoint($values[0], "Keys");
|
||||
$this->dataSet->AddPoint($values[0], "Values");
|
||||
$this->dataSet->AddPoint($values[1], "Keys");
|
||||
|
||||
//$this->dataSet->AddAllSeries();
|
||||
$this->dataSet->AddSerie("Values");
|
||||
|
@@ -18,7 +18,7 @@ class PMA_pChart_single_radar extends PMA_pChart_single
|
||||
{
|
||||
$maxValue = 0;
|
||||
$keys = array_keys($this->data);
|
||||
$valueKey = $keys[1];
|
||||
$valueKey = $keys[0];
|
||||
$maxValue = max($this->data[$valueKey]);
|
||||
|
||||
foreach ($this->data[$valueKey] as &$value) {
|
||||
|
Reference in New Issue
Block a user