From 8ade1115d7d663baadcb040b73739ddfd57de3d5 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sat, 8 Sep 2012 08:40:07 -0400 Subject: [PATCH] Initial display is wrong --- js/tbl_chart.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/js/tbl_chart.js b/js/tbl_chart.js index b33a81066f..de5c8d206a 100644 --- a/js/tbl_chart.js +++ b/js/tbl_chart.js @@ -148,6 +148,9 @@ $(function() { } drawChart(); + $('div#querychart').height($('div#resizer').height() * 0.96); + $('div#querychart').width($('div#resizer').width() * 0.96); + currentChart.replot( {resetAxes: true}) $('#querychart').show(); }); @@ -210,8 +213,6 @@ function PMA_queryChart(data, passedSettings, passedNonJqplotSettings) break; case 'pie': - // only available for a specific column - // todo: warn the user about this if (chart_series.length == 1) { series[0] = new Array(); $.each(data,function(key,value) {