liyongli 3 months ago
parent
commit
8c1bc83e42
1 changed files with 4 additions and 2 deletions
  1. 4 2
      src/components/maincomponents.vue

+ 4 - 2
src/components/maincomponents.vue

@@ -446,7 +446,8 @@ export default {
       // 传播量趋势
       linechart = new F2.Chart({
         id: 'container',
-        pixelRatio: window.devicePixelRatio
+        pixelRatio: window.devicePixelRatio,
+        height: 300
       });
       linechart.source(li, {
         dt: {
@@ -574,7 +575,8 @@ export default {
       const that = this;
       piechart = new F2.Chart({
         id: 'piechart',
-        pixelRatio: window.devicePixelRatio
+        pixelRatio: window.devicePixelRatio,
+        height: 300
       });
       let lis = [];
       for (let i = 0; i < li.length; i++) {