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 = '
- When drawing a radar chart all values are normalized to a range [0..10]. +