Browse Source

修改图形

chenrui  1 year ago
parent
commit
434f107fa6
1 changed files with 16 additions and 0 deletions
  1. 16 0
      src/views/echartPage/index.vue

+ 16 - 0
src/views/echartPage/index.vue

@@ -152,6 +152,10 @@ const hisOption = {
   series: [
     {
       name: 'Email',
+      label: {
+        show: true,
+        position: 'inside'
+      },
       data: [120, 200, 150, 80, 70, 110, 130],
       type: 'bar',
       barWidth: '20',
@@ -325,6 +329,11 @@ export default {
       type: Array,
       default: () => []
     },
+    //名称
+    echrtstiele: {
+      type: String,
+      default: () => ''
+    }
   },
   data() {
     return {
@@ -464,6 +473,13 @@ export default {
         data: this.axlist ? this.axlist : data
       }
       return xAxis
+    },
+    //表格标题
+    cheartstitle () {
+      let title = {
+        text: this.echrtstiele
+      }
+      return title
     }
   },
 };