title: {
text: titleval[i],
x: ‘center’,
y: ‘85%’,
textStyle: {
fontSize:12,
fontWeight:‘bold’,
},
},
label: { // 饼图图形上的文本标签
normal: { // normal 是图形在默认状态下的样式
show: true,
position: ‘center’,
color: ‘#000’,
fontSize: 16,
fontWeight: ‘bold’,
// formatter: ‘{c}’ // {b}:数据名; {c}:数据值; {d}:百分比,可以自定义显示内容,
formatter: valueList[i]+‘’
}
},
echarts:实现圆环图中间显示数据,下面显示标题
最新推荐文章于 2023-11-02 16:55:13 发布