I am working with jqPlot and wondering if there is a way to resize / redraw it when someone resizes the window. I know that there is a redraw function, but I'm not sure how to really call it ... Can someone give me some guidance on how to do this?
Here is my code:
$.jqplot('chart1', [line1], { title:'Users Per Day', axes:{ xaxis:{ renderer:$.jqplot.DateAxisRenderer, tickRenderer: $.jqplot.CanvasAxisTickRenderer , // tickInterval:'1 week', tickOptions:{ formatString:'%b %#d, %y', angle:-30 } }, yaxis:{ tickOptions:{ formatString:'%.1f' } } }, highlighter: { show: true, sizeAdjust: 7.5 }, cursor: { show: false /*show: true, zoom: true, showTooltip: false */ } });
'line1' is the array that is populated right before this code, and chart1 is the div where the chart is displayed.
Any ideas?
Thanks,
Craig
source share