title: Plotly,js - Y autoscale
body: <p>I have a line chart. When I run it the chart is autoscalled on Y axis. Meaning it shows max and min data automatically. Let's say the chart shows one hour of data. So, xaxis.range = ['01/01/2020 12:00', '01/01/2020 01:00']. If I change xaxis.range to ['01/01/2020 12:30', '01/01/2020 01:00'] and then relayout the chart will it autoscale the Y axis to new min and max of data that falls between new X axis range? </p>
  
  <p>Thanks</p>
  
  <p>Here is an example:
  <a href="https://codepen.io/MZolotoy/pen/dyoeqxz" rel="nofollow noreferrer">Pen</a></p>
  
  <p>and code:</p>
  
  <pre><code>var data = [
    {
      x: ['2013-10-04 22:23:00', '2013-11-04 22:23:00', '2013-12-04 22:23:00'],
      y: [1, 3, 6],
      type: 'scatter'
    }
  ];
  
  var myDiv = document.getElementById('myDiv');
  Plotly.newPlot(myDiv, data);
  myDiv.layout.xaxis.range = ['2013-10-04 22:23:00', '2013-11-04 22:23:00'];
  Plotly.relayout(myDiv, myDiv.layout);
  </code></pre>
  
  <p>Where I am trying changing the X range but even that is not happening.</p>