title: HTML5/JS Chart with Moving Average
body: <p><strong>Question:</strong> How can a moving average line be calculated and plotted on a JS/HTML5 chart?</p>
  
  <p>The closest example I can find is <a href="http://bitcoinwisdom.com/" rel="noreferrer">this website</a>. Looking at its JS files, I cannot identify the plotting chart library. Upon closer inspection, it appears that the moving average was not calculated on the serverside but not the clientside.</p>
  
  <p>Any suggestions appreciated!</p>
  
  <p><img src="https://i.stack.imgur.com/ZOGLy.png" alt="enter image description here"></p>