title: updating jqplot meter gauge after every 5 seconds
body: <p>I am displaying jqplot meter gauge inside modal window and I want to update it after every 5 seconds. I wrote the following code but it is not working </p>
  
  <pre><code>$(document).ready(function(){
  s1 = [Math.floor(Math.random()*(401)+100)];
  
  plot3 = $.jqplot('meter',[s1],{
     seriesDefaults: {
         renderer: $.jqplot.MeterGaugeRenderer,
         rendererOptions: {
             min: 100,
             max: 500,
             intervals:[200, 300, 400, 500],
             intervalColors:['#66cc66', '#93b75f', '#E7E658', '#cc6666'],
             smooth: true,
             animation: {
                  show: true
              }
         }
     }
   });
  $('a[href=\"#yw1_tab_3\"]').on('shown', function(e) {
              if (plot3._drawCount === 0) {
              plot3.replot();
          }
          });
           windows.setInterval(function() { plot3.destroy();
           s1 = [Math.floor(Math.random()*(401)+100)];
           plot3.replot();
          }, 5000);
  });
  </code></pre>
  
  <p>How can I update meter gauge every 5 seconds without updating whole page?</p>