highcharts drilldown column chart change Aaxis lables

六月ゝ 毕业季﹏ 提交于 2019-12-25 03:29:25

问题


any idea how to change X Axis lables in the drill down chart? now I get king , queen , 2 AND I want it to show me : 8,9,10 I tried to add categories: ['9', '8','1'], but it's not working :\ http://jsfiddle.net/mnXy3/6/ any idea? Thanks, Mor


回答1:


Second solution is using a pair {name,y} where x is category, then on xAxis set type as category. Example:http://jsfiddle.net/mnXy3/11/




回答2:


You need to specify your drilldown data differently

window.c = [
        ['9', 8],
        ['8', 9],
        ['1', 10]
    ];

Demo: http://jsfiddle.net/robschmuecker/mnXy3/10/



来源:https://stackoverflow.com/questions/24988891/highcharts-drilldown-column-chart-change-aaxis-lables

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!