highcharts钻取列图表更改Aaxis标签 [英] highcharts drilldown column chart change Aaxis lables
本文介绍了highcharts钻取列图表更改Aaxis标签的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
任何想法如何更改向下钻取图表中的X轴标签?现在我得到了国王,女王,2,我希望它给我看:8,9,10
我试图添加类别:['9','8','1'] ,
但它不起作用:\
http://jsfiddle.net / mnXy3 / 6 /
任何想法?
Thanks,
Mor
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
推荐答案
第二种解决方案是使用一对 {name ,y}
其中x是类别,然后在xAxis上将类型设置为类别。例如: http://jsfiddle.net/mnXy3/11/
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/
这篇关于highcharts钻取列图表更改Aaxis标签的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文