admin管理员组文章数量:1434890
I would like to ask, how can i display all number values in axis X in chart?
Now is are displayed only values 1,4,8,12 and would like to display all numbers, it means 1..12 in X axis (See image).
Thanks for any help.
I would like to ask, how can i display all number values in axis X in chart?
Now is are displayed only values 1,4,8,12 and would like to display all numbers, it means 1..12 in X axis (See image).
Thanks for any help.
Share Improve this question asked Oct 2, 2014 at 5:18 George SmithGeorge Smith 1432 gold badges3 silver badges15 bronze badges1 Answer
Reset to default 5Within your "categoryAxis" settings make sure you add "autoGridCount": false and also "gridCount": 12. Your settings sound look something like this.
"categoryAxis": {
"gridPosition": "start",
"labelRotation": 45,
"minorGridEnabled": true,
/* ENSURE 2 LINES BELOW ARE ADDED */
"autoGridCount": false,
"gridCount": 12
},
I have used 12 based on your example but this should be the total number of columns you have in your chart if different.
本文标签: javascriptAm Charthow to display all values in X axisStack Overflow
版权声明:本文标题:javascript - Am Chart - how to display all values in X -axis? - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1745644920a2668076.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
发表评论