yijianjun 1 місяць тому
батько
коміт
96ae57e2be
1 змінених файлів з 5 додано та 2 видалено
  1. 5 2
      src/views/board.vue

+ 5 - 2
src/views/board.vue

@@ -3119,7 +3119,7 @@ export default {
           seriesIndex: [0],
         },
       },
-      boardBase: { funnelNum: 6, lineNum: 8, gaugeNum: 8, barNum: 8, pieNum: 6 },
+      boardBase: { funnelNum: 996, lineNum: 998, gaugeNum: 998, barNum: 998, pieNum: 996 },
       gauge: {
         tooltip: { formatter: '{b} : {c}', trigger: 'item' },
         backgroundColor: 'transparent',
@@ -4048,6 +4048,9 @@ export default {
 
             let legendObj = {
               data: xAxis,
+              type: 'scroll',
+              orient: 'horizontal',
+              bottom: 'bottom',
             };
             legendObj = Object.assign(legendObj, this.funnel.legend);
             let seriesObj = {
@@ -4131,7 +4134,7 @@ export default {
             let titleObj = this.pie2 ? this.pie2.title : this.pie.title;
             titleObj.text = '月电采暖负荷统计';
 
-            const legendObj = this.pie2.legend;
+            const legendObj = { ...this.pie2.legend, type: 'scroll', left: '5%', bottom: 'top' };
 
             let seriesObj = {
               type: 'pie',