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