最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

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

programmeradmin0浏览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.

发布评论

评论列表(0)

  1. 暂无评论