Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to show the numbers on the y-axis by 1 on HighCharts?

I have couple of charts working but whenever the chart spline is on 1-3 the yAxis shows numbers like 0.25, 0.75, 1.50 etc.. The spline is correct but i want to show only full numbers on the yAxis e.g 1,2,3,4,5 etc..

Any way to do that?

like image 577
Ricardo Avatar asked Feb 02 '26 23:02

Ricardo


1 Answers

Fixed with :

allowDecimals: false

Thanks.

like image 156
Ricardo Avatar answered Feb 04 '26 11:02

Ricardo



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!