Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

Tags:

highcharts

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.

like image 381
Mat41 Avatar asked Jun 07 '13 04:06

Mat41


People also ask

How do I show more values on Y axis in R?

Method 1: Change Axis Scales in Base R To change the axis scales on a plot in base R Language, we can use the xlim() and ylim() functions. The xlim() and ylim() functions are convenience functions that set the limit of the x-axis and y-axis respectively.


1 Answers

Set allowDecimals: false, see API.

like image 64
Paweł Fus Avatar answered Sep 29 '22 01:09

Paweł Fus