Haobin Luo 2 年之前
父節點
當前提交
0968f21d46
共有 1 個文件被更改,包括 7 次插入4 次删除
  1. 7 4
      src/views/thaadInvestigation/index.vue

+ 7 - 4
src/views/thaadInvestigation/index.vue

@@ -204,11 +204,14 @@ export default {
         }}
     },
     mounted() {
-        for (let i = 0; i <= 100; i++) {
-        let theta = (i / 100) * 360;
-        let r = 5 * (1 + Math.sin((theta / 180) * Math.PI));
-        this.data.push([r, theta]);
+        for (let i = 0; i <= 7;i++) {
+            let theta = (i/100)*360;
+            let r = 10;
+            // let theta = (i/100)*180 + Math.random()*90;
+            // let r = 5 * (1 + Math.sin((theta / 180) * Math.PI));
+            this.data.push([r, theta]);
         }
+
         this.echartoption.series[0].data = this.data
         this.echartsInit();
         this.$wst.send({