admin管理员组

文章数量:1430841

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?

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?

Share Improve this question asked Dec 28, 2011 at 8:12 RicardoRicardo 1,6728 gold badges28 silver badges53 bronze badges 2
  • what have you specified in yAxis: { title: { text: 'title text' } } – Hemant Metalia Commented Dec 28, 2011 at 8:20
  • Already fixed that, someone just helped me on their forum, see my answer. – Ricardo Commented Dec 28, 2011 at 8:21
Add a ment  | 

1 Answer 1

Reset to default 9

Fixed with :

allowDecimals: false

Thanks.

本文标签: javascriptHow to show the numbers on the yaxis by 1 on HighChartsStack Overflow