placeHolderStyle = { normal: { label: { show: false, position: "center" }, labelLine: { show: false }, borderWidth: 3, color: "#fff", borderColor: "#dedede", borderType:'dashed' }, emphasis: { color: "#dedede", borderColor: "#dedede", borderWidth: 0, } }; option = { backgroundColor: '#fff', color: ['#fc7a26', '#fff', '#ffa127', '#fff', "#ffcd26"], legend: [{ orient: '', icon: 'circle', left: 'right', top: 'center', data: ['不喜欢', '喜欢', '跳过'] }], series: [ { name: '值', type: 'pie', clockWise: true, //顺时加载 hoverAnimation: false, //鼠标移入变大 radius: [199, 200], itemStyle: { normal: { label: { show: true, position: 'outside' }, labelLine: { show: true, length: 100, smooth: 0.5 }, borderWidth: 6, shadowBlur: 40, borderColor: "#fc7a26", shadowColor: 'rgba(0, 0, 0, 0)', //边框阴影 } }, data: [{ value: 7, name: '70%' }, { value: 3, name: '', itemStyle:placeHolderStyle, }] } ] }; 大概写了一下 改一下就可以了
大概写了一下 改一下就可以了