title: Live updating ajax charts
body: <p>I have a website which serves around 20 - 50 widgets per second and I wanted to create a chart that automatically gets data from the server and then updates the chart and I want the chart to run from right to left as more data is added and remove the old values and add the new values. I would like a javascript and php solution.</p>
  
  <p>I have tried google and cannot find any solutions for this and I found a tutorial once but now I have lost that link :( So any kind of help in form of a link, piece of code or what to look for will help.</p>
  
  <p>One thing that I wanted was having the widget start with a delay of fetch data but start displaying the data after 5 seconds of the intial fetch and then fetch data every 2 seconds, however load data second by second. This would ease the load on the server while also generating smooth graphs. </p>
  
  <p><img src="https://i.stack.imgur.com/8DrJR.gif" alt="enter image description here"></p>
  
  <p>Any help would be appreciated....</p>
  
  <p>Something Like this for php
  <a href="http://support.nevron.com/KB/a175/implement-real-time-chart-in-aspnet-application-using-ajax.aspx" rel="nofollow noreferrer">http://support.nevron.com/KB/a175/implement-real-time-chart-in-aspnet-application-using-ajax.aspx</a></p>