Echarts图例常用配置
legend: {
data: this.allLegend,
textStyle: {
//图例字体大小
fontSize: 10,
},
//图例大小
itemHeight: 10,
//图例滚动显示
type: 'scroll',
//图例纵向显示
orient: 'vertical',
//图例位置
right: 0,
top: 30,
bottom: 30,
},
Echarts图表控制文字和指引线
series: [
{
name: 'name',
type: 'pie',
radius: [0, '30%'],
center: ['40%', '50%'],
labelLine: {
//不显示图例指引线
show: false
},
label: {
//不显示图例上的文字
show: false,
position: ['0%', '50%']
},
data: this.data,
},
...
}