liyongli 4 gadi atpakaļ
vecāks
revīzija
e83b6b73d1
2 mainītis faili ar 10 papildinājumiem un 10 dzēšanām
  1. 1 1
      src/view/index/components/live/index.vue
  2. 9 9
      src/view/index/index.vue

+ 1 - 1
src/view/index/components/live/index.vue

@@ -292,7 +292,7 @@ export default {
       chart.tooltip(false);
       chart.coord("polar", {
         transposed: true,
-        radius: 1,
+        radius: 0.75,
       });
       chart.legend(false);
       chart.axis(false);

+ 9 - 9
src/view/index/index.vue

@@ -244,7 +244,7 @@
     ></canvas>
     <div v-if="ori.length" class="title">
       微博-原创趋势
-      <btn-group @changeBtn="changeBtn" :weibo="weibo" type="me" />
+      <btn-group @changeBtn="changeBtn" :weibo="weibo" type="ori" />
     </div>
     <canvas
       v-if="ori.length"
@@ -563,7 +563,7 @@ export default {
       chart.tooltip(false);
       chart.coord("polar", {
         transposed: true,
-        radius: 1,
+        radius: 0.75,
       });
       chart.legend(false);
       chart.axis(false);
@@ -723,12 +723,12 @@ export default {
         },
       });
       chart.tooltip({
-        showTitle: true,
+        showCrosshairs: true
       });
       chart
         .area()
         .position("name*value")
-        .color("l(90) 0:#1890FF 1:#f7f7f7")
+        .color("#1890FF")
         .shape("smooth");
       chart
         .line()
@@ -862,7 +862,7 @@ export default {
           });
         },
       });
-      const dv = new DataSet.View().source( this.contentEle);
+      const dv = new DataSet.View().source(this.contentEle);
       const range = dv.range("value");
       const min = range[0];
       const max = range[1];
@@ -893,10 +893,10 @@ export default {
           return 0;
         },
       });
-      
+
       let chart = undefined;
-      if (this.initCanvas['cloud']) {
-        chart = this.initCanvas['cloud'];
+      if (this.initCanvas["cloud"]) {
+        chart = this.initCanvas["cloud"];
         chart.destroy();
         chart = undefined;
       }
@@ -923,7 +923,7 @@ export default {
         .color("x")
         .shape("cloud");
       chart.render();
-      this.initCanvas['cloud'] = chart;
+      this.initCanvas["cloud"] = chart;
     },
     // 动态词云
     animate() {