设计图
![image](https://img.haomeiwen.com/i14188382/6ca314f6a4ea1289.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
没改之前
![image](https://img.haomeiwen.com/i14188382/896590a404ee389a.png?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
实现代码如下:
```
series: [
{
label: {
normal: {
formatter: '{b|{b}}\n {c|{c}人} \n {a|{d}%}',//\n实现换行
rich: {
a: {
color: '#333',
fontSize: 12,
lineHeight: 20
},
b: {
fontSize: 12,
lineHeight: 20,
color: '#333'
},
c: {
fontSize: 12,
lineHeight: 20,
color: '#333'
}
}
}
}
}
]
```
令人头大的echarts配置项,记录一下
网友评论