图例横向排列,当图例比较多时,如何在第二排让图标一一对齐?..."/>
matlab让legend横着排,echarts画一个饼图, orient: 'horizontal',图例横向排列,当图例比较多时,如何在第二排让图标一一对齐?...
饼图图例横向排列时,换行了如何让图标一一对齐?
直接上图,
第二行的第二个图标就没和上一行的图标对齐。求大神指点!
代码:
legend:{
show: true,
type: 'plain',
itemGap: 10,
bottom: '5%',
orient: 'horizontal',
data:[
{
name: '无抵押',
icon: 'circle',
textStyle:{
color: 'black'
}
},
{
name: '有抵押',
icon: 'circle',
textStyle:{
color: 'black'
}
},
{
name: '宝单保',
icon: 'circle',
textStyle:{
color: 'black'
}
},
{
name: '万商贷',
icon: 'circle',
textStyle:{
color: 'black'
}
},
{
name: 'O2O',
icon: 'circle',
textStyle:{
color: 'black'
}
},{
name: 'O2O1666',
icon: 'circle',
textStyle:{
color: 'black'
}
},{
name: 'O2O25665',
icon: 'circle',
textStyle:{
color: 'black'
}
},
{
name: '直销',
icon: 'circle',
textStyle:{
color: 'black'
}
}
]
},
更多推荐
matlab让legend横着排,echarts画一个饼图, orient: 'horizontal',图例横向排列,当图例比较多时,如何在
发布评论