瀏覽代碼

fix:人员管理看板

zhangjingyuan 3 年之前
父節點
當前提交
ec86016dc1

+ 3 - 0
src/views/peopleManages/personComcont/RingChart.vue

@@ -70,6 +70,8 @@ export default {
               // fontSize: 20,
               // fontSize: 20,
               position: "outside",
               position: "outside",
               fontWeight: "bold",
               fontWeight: "bold",
+              alignTo: 'edge',
+              margin: "1%",
               fontSize:12,
               fontSize:12,
               padding:[0, 0, 0, 0]
               padding:[0, 0, 0, 0]
               // color:'#fff'
               // color:'#fff'
@@ -83,6 +85,7 @@ export default {
             },
             },
             labelLine: {
             labelLine: {
               show: false,
               show: false,
+              distanceToLabelLine: 0
             },
             },
             data: this.info.data,
             data: this.info.data,
           },
           },

+ 6 - 2
src/views/system/jbdHome/board/component/getPieView.vue

@@ -54,7 +54,8 @@ export default {
           formatter: '{d}%'
           formatter: '{d}%'
         },
         },
         label: {
         label: {
-          formatter: '{b}\n({d}%)'
+          formatter: '{b}\n({d}%)',
+          edgeDistance: "20%"
         },
         },
         
         
         legend: {
         legend: {
@@ -79,7 +80,10 @@ export default {
               shadowColor: 'rgba(0, 0, 0, 0.5)'
               shadowColor: 'rgba(0, 0, 0, 0.5)'
             }
             }
           },
           },
-          
+          labelLine: {
+              distanceToLabelLine: 0,
+             
+            },
         }]
         }]
       };
       };
       myChart.setOption(option);
       myChart.setOption(option);