Highcharts设置了传奇高度 [英] Highcharts set legend height
本文介绍了Highcharts设置了传奇高度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
鉴于以下小提琴,
http://jsfiddle.net/JoelStransky/5QCmG/1
我如何设置图例高度,使其不需要导航?
api没有 legend.height
属性
How would I set the legend height so that it doesn't need the navigation?
The api doesn't have a legend.height
property
推荐答案
我想也许 maxHeight
属性会这样做,但无法改变高度。
I thought maybe the maxHeight
property would do it but couldn't get the height to change.
我想我会乱搞 y
属性,并发现一个似乎工作得很好的场景。您可以根据需要调整它。
I thought I would mess around with the y
property and found a scenario that seems to work pretty good. You can tweak it as you see fit.
legend:{
align: 'right',
verticalAlign:'middle',
width: 200,
itemWidth: 100,
y: 85
},
这篇关于Highcharts设置了传奇高度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文