傅行帆 5 年 前
コミット
9ec05c99ea

+ 1
- 7
src/pages/indexEcharts/components/UserConversion.jsx ファイルの表示

@@ -79,13 +79,7 @@ const UserSource = props => {
79 79
       radius: ['34%', '52%'],
80 80
       avoidLabelOverlap: false,
81 81
       label: {
82
-        normal: {
83
-          show: false,
84
-          position: 'center',
85
-          color: '#666666',
86
-          fontSize: 22,
87
-          formatter: '{d}%'
88
-        },
82
+        formatter: '{a} \n{b} {@value}',
89 83
         emphasis: {
90 84
           show: true,
91 85
           formatter: '{d}%',

+ 3
- 0
src/pages/indexEcharts/components/UserSex.jsx ファイルの表示

@@ -51,6 +51,9 @@ const UserSource = (props) => {
51 51
       name: '性别比例',
52 52
       center: ['44%', '65%'],
53 53
       radius: ['34%', '52%'],
54
+      label: {
55
+        formatter: '{a} \n{b} {@value}',
56
+      },
54 57
       data:
55 58
         dataset,
56 59
     }

+ 3
- 8
src/pages/indexEcharts/components/UserSourcepie.jsx ファイルの表示

@@ -53,17 +53,12 @@ const UserSource = (props) => {
53 53
     },
54 54
     series: [
55 55
       {
56
+        name: '用户来源',
56 57
         type: 'pie',
57 58
         center: ['40%', '65%'],
58 59
         radius: ['34%', '52%'],
59 60
         label: {
60
-          normal: {
61
-            show: false,
62
-            position: 'center',
63
-            color: '#666666',
64
-            fontSize: 22,
65
-            formatter: '{d}%'
66
-          },
61
+          formatter: '{a} \n{b} {@value}',
67 62
           emphasis: {
68 63
             show: true,
69 64
             formatter: '{d}%',
@@ -71,7 +66,7 @@ const UserSource = (props) => {
71 66
               fontSize: '22',
72 67
               fontWeight: 'bold'
73 68
             }
74
-          }
69
+          },
75 70
         },
76 71
       },
77 72