首页 前端知识 echarts 饼图的指示线(labelline) 问题

echarts 饼图的指示线(labelline) 问题

2024-01-24 15:01:59 前端知识 前端哥 109 53 我要收藏

数据过多,且几个比较小的数据在一块扎堆

在这里插入图片描述

series: [
{
name: '',
type: 'pie',
center: ["25%", "50%"],
radius: ['45%', '60%'],
minAngle: 10, // 设置每块扇形的最小占比
avoidLabelOverlap: false,
hoverAnimation: false,
silent: true,
label: {
normal: {
show: true,
formatter: "{d}% ",
textStyle: {
fontSize: this.standSize / 150,
color: "#fff"
},
},
},
labelLine: {
normal: {
lineStyle: {
color: 'rgba(255, 255, 255, 0.3)'
},
smooth: 0.2,
length: this.standSize / 50,
length2: this.standSize / 100,
}
},
data: data
}
],
复制

在这里插入图片描述

转载请注明出处或者链接地址:https://www.qianduange.cn//article/229.html
评论
还可以输入200
共0条数据,当前/页
发布的文章

未知死亡的详细内容

2024-02-03 01:02:58

jQuery实现3D轮播图

2024-02-02 09:02:25

jquery中ajax总结

2024-02-02 09:02:25

jQuery的toggle方法使用指南

2024-02-02 09:02:25

解决jQuery跨域问题的方法

2024-02-02 09:02:24

大家推荐的文章
会员中心 联系我 留言建议 回顶部
复制成功!