可以通过type选项配置成滚动条的形式,通过配置项还可以对翻页按钮进行调整。
示例图:
配置项:
option = {
legend: {
top: 30,
right: 10,
bottom: 10,
itemWidth: 10,
itemHeight: 10,
textStyle: {
color: '#aaa',
fontSize: 10
},
orient: 'vertical',
type: 'scroll',
pageIconColor: '#666',
pageIconSize: 6,
pageTextStyle: {
color: '#999',
fontSize: 8
}
}
}