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

javascript - Am Chart - how to display all values in X -axis? - Stack Overflow

programmeradmin1浏览0评论

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 badges
Add a ment  | 

1 Answer 1

Reset to default 5

Within 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.

发布评论

评论列表(0)

  1. 暂无评论