From a88705463db29c36156fa6574bdc572fa8090a44 Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sat, 19 May 2012 18:57:16 -0400 Subject: [PATCH] first attempt at resizing --- js/tbl_zoom_plot_jqplot.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/js/tbl_zoom_plot_jqplot.js b/js/tbl_zoom_plot_jqplot.js index 82dab80931..fc1645773b 100644 --- a/js/tbl_zoom_plot_jqplot.js +++ b/js/tbl_zoom_plot_jqplot.js @@ -504,6 +504,12 @@ $(document).ready(function() { currentChart.resetZoom(); }); + $('div#querychart').resizable({ + resize: function(event, ui) { + currentChart.replot( {resetAxes: true}) + } + }); + $('div#querychart').bind('jqplotDataClick', function(event, seriesIndex, pointIndex, data) { searchedDataKey = data[4]; // key from searchedData (global)