用echarts 画饼状图,要在图上显示数据,但是当数据很小时,就被重叠。如图所示:
应该用formatter来判断当数据很小时,数据不显示出来呢
部分代码:
data:[
{
value:40,
name:'3分钟以下',
itemStyle:{
normal:{
color:'#75abdb',
label:{
show: true,
formatter: '{d}%',
position:'inner'
}
}
}
},
Copyright 2014-2026 https://www.php.cn/ All Rights Reserved | php.cn | 湘ICP备2023035733号
拥有18年软件开发和IT教学经验。曾任多家上市公司技术总监、架构师、项目经理、高级软件工程师等职务。 网络人气名人讲师,...