分两组不同的样式
legend:[
{
textStyle:{
color: 'rgba(255, 255, 255, 0.8)'
},
top:'5%',
icon:'rect',
left:0,
itemWidth:15,
itemHeight:2,
itemGap:30,
data:['111','222','333','444']
},
{
textStyle:{
color: 'rgba(255, 255, 255, 0.8)'
},
top:'5%',
left:0,
icon:'rect',
itemWidth:30,
itemHeight:1,
itemGap:20,
data:['\n','555','666']
}
]
不同图例增加不同图标
legend:[
{
textStyle:{
color: 'rgba(255, 255, 255, 0.8)'
},
top:'5%',
icon:'image://' + IMG,
left:0,
itemWidth:15,
itemHeight:2,
itemGap:30,
data:['111']
},
{
textStyle:{
color: 'rgba(255, 255, 255, 0.8)'
},
top:'5%',
left:0,
icon:'image://' + IMG1,
itemWidth:30,
itemHeight:1,
itemGap:20,
data:['222']
}
]