Parcourir la source

大数据-党务工作者统计

pengjing il y a 2 mois
Parent
commit
f4cc8777f5

+ 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;