How to get only whole numbers on the y-axis?

Mat41 picture Mat41 · Jun 7, 2013 · Viewed 18.3k times · Source

I'm using highcharts. When I get small numbers in my series the y-axis starts using floating numbers. How can I force it to only use whole numbers regardless of my data?

Note: I do have a minimum set to "4", so even when there is one result to y-axis range will be 0-4.

Answer

Paweł Fus picture Paweł Fus · Jun 7, 2013

Set allowDecimals: false, see API.