highcharts drilldown column chart change Aaxis lab

2019-09-16 04:32发布

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

2条回答
【Aperson】
2楼-- · 2019-09-16 05:05

You need to specify your drilldown data differently

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

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

查看更多
走好不送
3楼-- · 2019-09-16 05:07

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/

查看更多
登录 后发表回答