diff --git a/libraries/chart.lib.php b/libraries/chart.lib.php index 94cccf581..a8e2577f7 100644 --- a/libraries/chart.lib.php +++ b/libraries/chart.lib.php @@ -88,16 +88,6 @@ 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'; - } - - // set default font size if needed - if (empty($chartSettings['fontSize'])) { - $chartSettings['fontSize'] = 8; - } - // default for legend $chartSettings['legend'] = false; diff --git a/libraries/chart/pma_pchart_chart.php b/libraries/chart/pma_pchart_chart.php index 8e85240ba..09276e267 100644 --- a/libraries/chart/pma_pchart_chart.php +++ b/libraries/chart/pma_pchart_chart.php @@ -35,6 +35,10 @@ abstract class PMA_pChart_Chart extends PMA_Chart $this->settings['labelHeight'] = 20; + $this->settings['fontSize'] = 8; + + $this->settings['continuous'] = 'off'; + // as in CSS (top, right, bottom, left) $this->setAreaMargins(array(20, 20, 40, 60)); } diff --git a/tbl_chart.php b/tbl_chart.php index ef2ff1d3e..b33c0c8bc 100644 --- a/tbl_chart.php +++ b/tbl_chart.php @@ -165,7 +165,7 @@ $url_params['reload'] = 1;

- +