饼图优化

This commit is contained in:
lll 2023-12-06 16:19:44 +08:00
parent 24838b3ecc
commit f6ff9e05e8
1 changed files with 15 additions and 13 deletions

View File

@ -1178,8 +1178,12 @@ export default {
lineHeight: 20, lineHeight: 20,
}, },
labelLine: { labelLine: {
length: 60, length: 100,
length2: 60, length2: 100,
lineStyle: {
color: "#fff", // 线
width: 3, // 线
},
}, },
startAngle: -30, //[0, 360] startAngle: -30, //[0, 360]
clockwise: false, //3d clockwise: false, //3d
@ -1197,7 +1201,6 @@ export default {
color: "#7BC0CB", color: "#7BC0CB",
}, },
}, },
label: { label: {
show: true, show: true,
color: "#", color: "#",
@ -1215,10 +1218,11 @@ export default {
rich: { rich: {
name: { name: {
fontSize: 24, fontSize: 24,
color: "#01CCDC",
}, },
colors: { colors: {
fontSize: 30, fontSize: 40,
color: "#fff", color: "#01CCDC",
fontWeight: 700, fontWeight: 700,
}, },
}, },
@ -1240,11 +1244,10 @@ export default {
boxHeight: 20, // boxHeight: 20, //
left: "-15%", left: "-15%",
top: "10%", top: "10%",
distance: 800,
viewControl: { viewControl: {
alpha: 40, alpha: 25,
beta: 40, beta: 60,
distance: 800, //zoom distance: 300, //zoom
rotateSensitivity: 0, // 0 rotateSensitivity: 0, // 0
zoomSensitivity: 0, // 0 zoomSensitivity: 0, // 0
panSensitivity: 0, // 0 panSensitivity: 0, // 0
@ -1535,14 +1538,13 @@ export default {
}; };
</script> </script>
<style scoped lang="less"> <style scoped lang="less">
//
.buttomCharts { .buttomCharts {
background: center top url("../../../assets/img/底盘.png") no-repeat; background: center top url("../../../assets/img/底盘.png") no-repeat;
background-size: 100% 100%; background-size: 100% 100%;
height: 280px; height: 300px;
width: 600px; width: 700px;
margin-top: -300px; margin-top: -300px;
margin-left: 22%; margin-left: 18%;
} }
.box { .box {