Edit file File name : jquery.flot.resize.min.js Content :!function(t,e,i){var n,h=t([]),r=t.resize=t.extend(t.resize,{}),o="setTimeout",s="resize",a=s+"-special-event",u="delay",d="throttleWindow";r[u]=250,r[d]=!0,t.event.special[s]={setup:function(){if(!r[d]&&this[o])return!1;var i=t(this);h=h.add(i),t.data(this,a,{w:i.width(),h:i.height()}),1===h.length&&function c(){n=e[o](function(){h.each(function(){var e=t(this),i=e.width(),n=e.height(),h=t.data(this,a);i===h.w&&n===h.h||e.trigger(s,[h.w=i,h.h=n])}),c()},r[u])}()},teardown:function(){if(!r[d]&&this[o])return!1;var e=t(this);h=h.not(e),e.removeData(a),h.length||clearTimeout(n)},add:function(e){if(!r[d]&&this[o])return!1;var n;function h(e,h,r){var o=t(this),s=t.data(this,a);s.w=h!==i?h:o.width(),s.h=r!==i?r:o.height(),n.apply(this,arguments)}if("function"==typeof e)return n=e,h;n=e.handler,e.handler=h}}}(jQuery,this),function(t){jQuery.plot.plugins.push({init:function(t){function e(){var e=t.getPlaceholder();0!=e.width()&&0!=e.height()&&(t.resize(),t.setupGrid(),t.draw())}t.hooks.bindEvents.push(function(t,i){t.getPlaceholder().on("resize",e)}),t.hooks.shutdown.push(function(t,i){t.getPlaceholder().off("resize",e)})},options:{},name:"resize",version:"1.0"})}(); Save