title: Morris Graph, round y-axis numbers
body: <p>I made a Morris.js graph: <a href="http://thuis.xitro.nl/" rel="nofollow noreferrer">http://thuis.xitro.nl/</a></p>
  
  <p>I do not want to set a value in ymin, I have this on "auto".
  I now have very long numbers because of that, example: 55.29999999999999
  I want that to show just 55.</p>
  
  <p>It would be even better if my graph just showed: 20, 30, 40, 50, 60, 70.</p>
  
  <p>How can I achieve this? I know some HTML/PHP/MySQL but I'm pretty new to JavaScript.</p>
  
  <p>EDIT: Fixed it myself by using: yLabelFormat: function(y) {return y = Math.round(y);},</p>
  
  <p>Any idea how I can get my chart like this: 20,30,40,50,60,70?</p>
  
  <pre><code>Morris.Line({
      // ID of the element in which to draw the chart.
      element: 'morris-line-chart-dcr',
      // Chart data records -- each entry in this array corresponds to a point on
      // the chart.
      data: [&lt;?php echo $chart_data_dcr; ?&gt;],
      // The name of the data record attribute that contains x-visitss.
      xkey: 'time',
      // A list of names of data record attributes that contain y-visitss.
      ykeys: ['eff', 'avg', 'rep'],
      // Labels for the ykeys -- will be displayed when you hover over the
      // chart.
      labels: ['Decred Effective','Decred Average','Decred Reported'],
      lineColors: ['#337ab7','#ffa500','#5cb85c'],
      pointFillColors: ['#337ab7','#ffa500','#5cb85c'],
      pointStrokeColors: ['#337ab7','#ffa500','#5cb85c'],
      pointSize: 3,
      hideHover: true,
      ymax: "auto",
      ymin: "auto",
      // Disables line smoothing
      smooth: false,
      resize: true
  });
  </code></pre>