title: Hightcharts: Smooth zoom in/out distance
body: <p>How to smoothly zoom in and out of the chart using buttons?
  Below I gave the code approximation of the graph.
  (If this is important: I have Data every second.)</p>
  
  <p><div class="snippet" data-lang="js" data-hide="false" data-console="true" data-babel="false">
  <div class="snippet-code">
  <pre class="snippet-code-js lang-js prettyprint-override"><code>var min = chart.xAxis[0].getExtremes().min,
  max = chart.xAxis[0].getExtremes().max;
  chart.xAxis[0].setExtremes((min + 12 * 2000),(max - 12 * 2000));</code></pre>
  </div>
  </div>
  </p>