title: How do I get the current step size of a chartjs chart whose stepSize I have not defined?
body: <p>For example, after the chart has been defined, I want to know the stepsize of the y axis. </p>
  
  <pre><code>// Your average chart
  var ctx = document.getElementById('myChart').getContext('2d');
  var chart = new Chart(ctx, {
  
      type: 'line',
  
  
      data: {
          labels: ['January', 'February', 'March', 'April', 'May', 'June', 'July'],
          datasets: [{
              label: 'My First dataset',
              backgroundColor: 'rgb(255, 99, 132)',
              borderColor: 'rgb(255, 99, 132)',
              data: [0, 10, 5, 2, 20, 30, 45]
          }]
      },
  
  
      options: {}
  });
  </code></pre>
  
  <p>Can I do something like the following?</p>
  
  <pre><code>console.log(downChart.options.scales.yAxes.ticks.stepSize);
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/ELrlW.png" rel="nofollow noreferrer">Here you can see what a stepsize is.</a></p>
  
  <p>sources: <a href="https://www.chartjs.org/docs/latest/axes/cartesian/linear.html#axis-range-settings" rel="nofollow noreferrer">https://www.chartjs.org/docs/latest/axes/cartesian/linear.html#axis-range-settings</a></p>