CzRger 1 月之前
父节点
当前提交
5c9740687b
共有 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',
         radius: ['26%', '50%'],
         data: typeData.map((v: any) => {
-          v.value = v.value || 100
+          v.value = v.count || 0
           v.name = v.type
           return v
         }),
         label: {
           formatter: '{b} {d}%',
+          overflow: 'break',
         },
         emphasis: {
           disabled: true,