Browse Source

修改echarts图

chuwu 5 years ago
parent
commit
76c4b6e8bf

+ 4 - 1
src/components/config_point/find_keyword.vue

@@ -9,7 +9,7 @@
             </div>
             <div class="h10"></div>
             <div class="center">
-                <el-button type="primary" :disabled="!Description" @click="getCutString">此条无法识别</el-button>
+                <el-button type="primary" :disabled="!Description" @click="noWatch">此条无法识别</el-button>
                 <el-button type="primary" :disabled="!Description" @click="getCutString">继续发现关键字</el-button>
             </div>
             <div class="h10"></div>
@@ -250,6 +250,9 @@
                     // console.log(res, 'getListFetch')
                     this.tagList = res.Content
                 })
+            },
+            noWatch(){
+                console.log()
             }
         },
         watch:{

+ 8 - 6
src/components/echarts/doughnut.vue

@@ -38,16 +38,18 @@
                         formatter: "{b}: ({d}%)"
                     },
                     legend: {
-                        orient: 'horizontal',
-                        x: 'center', // 'center'
+                        orient: 'vertical',
+                        right: 10,
+                        top: 30,
+                        bottom: 20,
                         data: this.renderData.map(item => {
                             return item.name
                         })
                     },
                     graphic: {
                         type: 'text',
-                        left: 'center',
-                        top: 'center',
+                        left: '70px',
+                        top: '60px',
                         style: {
                             text: '数据源\n1111',
                             textAlign: 'center',
@@ -60,16 +62,16 @@
                         name: '',
                         type: 'pie',
                         radius: ['40%', '60%'],
+                        center:['90px','70px'],
                         itemStyle: {
                             normal: {
                                 label: {
-                                    show: true,
+                                    show: false,
                                     textStyle: {
                                         color: '#3c4858',
                                         fontSize: "9"
                                     },
                                     formatter: function(val) { //让series 中的文字进行换行
-                                    console.log(val,val)
                                         return val.name.split("-")[0];
                                     }
                                 },