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

I have couple of charts working but whenever the chart spline is on 1-3 the yAxis shows numbers like 0.

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.

发布者:admin,转转请注明出处:http://www.yc00.com/questions/1745567033a4633457.html

相关推荐

发表回复

评论列表(0条)

  • 暂无评论

联系我们

400-800-8888

在线咨询: QQ交谈

邮件:admin@example.com

工作时间:周一至周五,9:30-18:30,节假日休息

关注微信