我正在使用 highcharts 绘制出很多部分的折线图。我希望图例在图形区域的底部是静态的。图形区域的高度可以固定,但图例可以动态更改。
我在图例对象中使用以下选项
legend: {
useHTML: true,
enabled: true,
reversed: false,
verticalAlign: 'bottom',
floating: true,
align: 'center',
padding: 10,
margin: 20,
itemDistance: 10,
itemStyle: {
'font-size': '14px',
'color': colors.greyDark,
'font-family': fonts.proximaNovaBold,
'letter-spacing': '0',
'line-height': '17px',
'text-align': 'center',
},
itemMarginBottom: 10,
x: 0,
y: 100
},
Run Code Online (Sandbox Code Playgroud)
我已经在小提琴https://jsfiddle.net/x496tLmf/1/ 中复制了它
有什么办法可以解决这个问题,并将图例粘在底部。所有这些都需要显示,因为图形将作为静态图像导出。
highcharts ×1