title: Setting min and max values chart.js
body: <p>For a graph I am making with Chart.js, I am trying to set the max. and min values for the X-axis. As you can see from the code below, I am able to easily set these values for the Y-axis, but setting the limits for X is giving me trouble. Please help.</p>
  
  <p>Please view the CodePen here:
  <a href="https://codepen.io/varavind/pen/mGGLvw" rel="nofollow noreferrer">Chart.js JS code to draw a graph</a></p>
  
  <pre><code>myLineChart.options.scales.yAxes[0].ticks.max=20;
  myLineChart.options.scales.xAxes[0].ticks.max=20;
  myLineChart.update();
  </code></pre>