http://jsfiddle.net/sgrg93/brev29jg/
legend:{
borderWidth: 1,
width: 300 //to increase the width of legend more than that of ColorAxis
},在上面的小提琴中,图例的宽度大于ColorAxis的宽度。ColorAxis在图例中左对齐。有没有办法使ColorAxis在图例框中居中或靠右对齐?
我不想用
this.legend.contentGroup.translate(50,0)在图表的load()事件上
发布于 2016-05-05 17:55:24
当然,你可以修改对象'legend‘来禁用它:
legend:{
enabled: false
}发布于 2016-05-05 17:58:46
你需要空格有什么原因吗?
如果删除width属性,则只需使周围的框具有适合图例的正确大小即可:
legend:{
borderWidth:1
//width:300
},http://jsfiddle.net/brev29jg/1/
https://stackoverflow.com/questions/37047406
复制相似问题