彭宇 1 year ago
parent
commit
80a979d277
1 changed files with 2 additions and 2 deletions
  1. 2 2
      src/views/bigdata/chart-event.vue

+ 2 - 2
src/views/bigdata/chart-event.vue

@@ -102,8 +102,8 @@
         // 数据处理
         chartData.forEach((v, i) => {
           arrName.push(v.name);
-          arrValue.push(parseInt(v.value));
-          sum = sum + v.value;
+          arrValue.push(Number(v.value));
+          sum = Number(sum) + Number(v.value);
         });
 
         // 图表option整理