diff --git a/libraries/chart.lib.php b/libraries/chart.lib.php index eeebd9fde..37e50997d 100644 --- a/libraries/chart.lib.php +++ b/libraries/chart.lib.php @@ -88,6 +88,11 @@ function PMA_chart_results($data, &$chartSettings, &$chartErrors = array()) $chartSettings['barType'] = 'stacked'; } + // set default if image is continuous (one part) + if (empty($chartSettings['continuous'])) { + $chartSettings['continuous'] = 'off'; + } + // default for legend $chartSettings['legend'] = false; diff --git a/libraries/chart/pma_pchart_chart.php b/libraries/chart/pma_pchart_chart.php index 87ca65f70..4a70fc212 100644 --- a/libraries/chart/pma_pchart_chart.php +++ b/libraries/chart/pma_pchart_chart.php @@ -150,7 +150,13 @@ abstract class PMA_pChart_Chart extends PMA_Chart $this->init(); $this->prepareDataSet(); $this->prepareChart(); - $this->render(20); + + if ($this->isContinuous()) { + $this->render(1); + } + else { + $this->render(20); + } $returnData = '
'; foreach ($this->partsEncoded as $part) { @@ -196,6 +202,11 @@ abstract class PMA_pChart_Chart extends PMA_Chart return $this->settings['scale']; } + protected function isContinuous() + { + return $this->settings['continuous'] == 'on'; + } + protected function getImageMap() { return $this->chart->ImageMap; diff --git a/tbl_chart.php b/tbl_chart.php index 28b37463a..a794c4b9a 100644 --- a/tbl_chart.php +++ b/tbl_chart.php @@ -151,10 +151,17 @@ $url_params['reload'] = 1; + + + > + + + +

- When drawing a radar chart all values are normalized to a range [0..10]. +