|
@@ -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({
|