瀏覽代碼

Merge branch '1.1.3-master_web' of http://8.130.72.63:18081/shenzhen/tjdify into 1.1.3-master

CzRger 1 月之前
父節點
當前提交
9c14bd9295
共有 1 個文件被更改,包括 2 次插入1 次删除
  1. 2 1
      web/app/(commonLayout)/datasets/Statistic.tsx

+ 2 - 1
web/app/(commonLayout)/datasets/Statistic.tsx

@@ -53,12 +53,13 @@ const Statistic = () => {
         type: 'pie',
         type: 'pie',
         radius: ['26%', '50%'],
         radius: ['26%', '50%'],
         data: typeData.map((v: any) => {
         data: typeData.map((v: any) => {
-          v.value = v.value || 100
+          v.value = v.count || 0
           v.name = v.type
           v.name = v.type
           return v
           return v
         }),
         }),
         label: {
         label: {
           formatter: '{b} {d}%',
           formatter: '{b} {d}%',
+          overflow: 'break',
         },
         },
         emphasis: {
         emphasis: {
           disabled: true,
           disabled: true,