傅行帆 5 lat temu
rodzic
commit
9ec05c99ea

+ 1
- 7
src/pages/indexEcharts/components/UserConversion.jsx Wyświetl plik

79
       radius: ['34%', '52%'],
79
       radius: ['34%', '52%'],
80
       avoidLabelOverlap: false,
80
       avoidLabelOverlap: false,
81
       label: {
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
         emphasis: {
83
         emphasis: {
90
           show: true,
84
           show: true,
91
           formatter: '{d}%',
85
           formatter: '{d}%',

+ 3
- 0
src/pages/indexEcharts/components/UserSex.jsx Wyświetl plik

51
       name: '性别比例',
51
       name: '性别比例',
52
       center: ['44%', '65%'],
52
       center: ['44%', '65%'],
53
       radius: ['34%', '52%'],
53
       radius: ['34%', '52%'],
54
+      label: {
55
+        formatter: '{a} \n{b} {@value}',
56
+      },
54
       data:
57
       data:
55
         dataset,
58
         dataset,
56
     }
59
     }

+ 3
- 8
src/pages/indexEcharts/components/UserSourcepie.jsx Wyświetl plik

53
     },
53
     },
54
     series: [
54
     series: [
55
       {
55
       {
56
+        name: '用户来源',
56
         type: 'pie',
57
         type: 'pie',
57
         center: ['40%', '65%'],
58
         center: ['40%', '65%'],
58
         radius: ['34%', '52%'],
59
         radius: ['34%', '52%'],
59
         label: {
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
           emphasis: {
62
           emphasis: {
68
             show: true,
63
             show: true,
69
             formatter: '{d}%',
64
             formatter: '{d}%',
71
               fontSize: '22',
66
               fontSize: '22',
72
               fontWeight: 'bold'
67
               fontWeight: 'bold'
73
             }
68
             }
74
-          }
69
+          },
75
         },
70
         },
76
       },
71
       },
77
 
72