Pārlūkot izejas kodu

修改圆环滑过效果

l1448442195@163.com 1 gadu atpakaļ
vecāks
revīzija
607dcaed06
1 mainītis faili ar 10 papildinājumiem un 5 dzēšanām
  1. 10 5
      investment/js/investHome2.js

+ 10 - 5
investment/js/investHome2.js

@@ -552,7 +552,8 @@ let app = new Vue({
           {
             name: '',
             type: 'pie',
-            radius: ['70%', '50%'],
+            radius: ['50%','70%',],
+            center: ['50%', '45%'],
             itemStyle: {
               normal: {
                 label: {
@@ -561,7 +562,10 @@ let app = new Vue({
               },
             },
             labelLine: {
-              show: false
+              show: false,
+              emphasis: {
+                show: true
+              }
             },
             data: [
               { value: 1048, name: '煤炭' },
@@ -803,7 +807,8 @@ let app = new Vue({
           {
             name: '',
             type: 'pie',
-            radius: ['70%', '50%'],
+            radius: ['50%', '70%'],
+            center: ['50%', '45%'],
             itemStyle: {
               normal: {
                 label: {
@@ -858,7 +863,7 @@ let app = new Vue({
           {
             name: '',
             type: 'pie',
-            radius: ['60%', '40%'],
+            radius: ['40%', '60%'],
             center: ['40%', '45%'],
             itemStyle: {
               normal: {
@@ -914,7 +919,7 @@ let app = new Vue({
           {
             name: '',
             type: 'pie',
-            radius: ['60%', '40%'],
+            radius: ['40%', '60%'],
             center: ['40%', '45%'],
             itemStyle: {
               normal: {