title: Skip decimal points on y-axis in chartJS
body: <p>I am using <a href="http://www.chartjs.org/docs/" rel="noreferrer">this</a> library to draw charts in my web app. The issue is that I am having decimal points in my y-axis. You can see that in the image below <a href="https://i.stack.imgur.com/Hnair.png" rel="noreferrer"><img src="https://i.stack.imgur.com/Hnair.png" alt="enter image description here"></a></p>
  
  <p>Is there a way that I can restrict it to only have numbers? </p>
  
  <p>This is my code </p>
  
  <pre><code>var matches = $("#matches").get(0).getContext("2d");
  
  var data = {
          labels: labelsFromCurrentDateTillLastWeek,
          datasets: [
              {
                  label: "Last Weeks Matches",
                  fillColor: "rgba(220,220,220,0.2)",
                  strokeColor: "rgba(220,220,220,1)",
                  pointColor: "rgba(220,220,220,1)",
                  pointStrokeColor: "#fff",
                  pointHighlightFill: "#fff",
                  pointHighlightStroke: "rgba(220,220,220,1)",
                  data: result
              }
          ]
      };
  
      var options = {
          scaleLabel: function (label) {
              return Math.round(label.value);
          }
      };
  
      var myLineChart = new Chart(matches, {
          type: 'bar',
          data: data,
          options: options
  
      })
  </code></pre>