Browse Source

大数据-党务工作者统计

pengjing 2 months ago
parent
commit
f4cc8777f5
1 changed files with 7 additions and 1 deletions
  1. 7 1
      src/main/resources/static/app/main/bigdata/showDjdsj/dwgzz.js

+ 7 - 1
src/main/resources/static/app/main/bigdata/showDjdsj/dwgzz.js

@@ -415,7 +415,13 @@
                         data: $scope.xueli_data,
                         center: ['30%', '50%']
                     }
-                ]
+                ],
+                tooltip: {
+                    trigger: 'item',
+                    formatter: function (data) {
+                        return data.seriesName + "<br/>" + data.name + " : " + data.value + " (" + data.percent.toFixed(0) + "%)";
+                    }
+                }
             };
             $scope.load_dyxl = function () {
                 $scope.xueli_legend_data.length = 0;