title: Set Dynamic x-axis range in Highcharts
body: <p>The following setting sets the x-axis range on Highcharts to the past hour:</p>
  
  <pre><code>xAxis: {
      min: new Date().setHours(new Date().getHours() - 1), // last hour
      max: new Date().getTime()),                          // now
  },
  </code></pre>
  
  <p>However more data points are added every few seconds. How can you make the x-axis dynamic such that the scale updates with new data points, showing only the past hour?</p>