温红权 8 лет назад
Родитель
Сommit
f45cd858cc
1 измененных файлов с 14 добавлено и 11 удалено
  1. 14 11
      VisualInspection/js/statistics/road_manage_statistics.js

+ 14 - 11
VisualInspection/js/statistics/road_manage_statistics.js

@@ -805,17 +805,20 @@ $(function() {
                         normal: {
                             label: {
                                 show: true,
-                                position: 'inner',
-                                formatter: function(params, ticket, callback) {
-                                    var res = params.name;
-                                    if (params.percent < 10) {
-                                        return "";
-                                    }
-                                    return res;
+                                formatter: '{b}:\n{c}人({d}%)',
+                                textStyle: {
+                                    alias: 'center',
+                                    fontSize: 10,
+                                    color: '#888'
                                 }
                             },
                             labelLine: {
-                                show: false
+                                show: true,
+                                length: 20,
+                                lineStyle: {
+                                    color: '#888'
+                                }
+
                             }
                         }
                     },
@@ -824,7 +827,7 @@ $(function() {
                 {
                     name: '访问来源',
                     type: 'pie',
-                    radius: [60, 100],
+                    radius: [150, 190],
 
                     // for funnel
                     x: '60%',
@@ -834,11 +837,11 @@ $(function() {
                     itemStyle: {
                         normal: {
                             label: {
-                                show: true,
+                                show: false,
                                 formatter: '{b}:{c}人({d}%)'
                             },
                             labelLine: {
-                                show: true
+                                show: false
                             }
                         }
                     },