How to make JqPlot responsive ?

jqPlot is a plotting and charting plugin for the jQuery Javascript framework. jqPlot produces beautiful line, bar and pie charts with many features.

To make JqPlot responsive we need to replot() the graph on change on window size. Here is how you should do it…

Using the replot() function this can be achieved, as done at this fiddle link. Read more on replot and redraw from here.


    plot1 = $.jqplot ('chart', [[3,7,9,1,4,6,8,2,5]]);

    window.onresize = function(event) {

Hope this helps :)