Browse Source

echarts legend样式

wzl 2 years ago
parent
commit
2221b9a72b
1 changed files with 10 additions and 1 deletions
  1. 10 1
      src/views/Dashboard.vue

+ 10 - 1
src/views/Dashboard.vue

@@ -165,9 +165,18 @@ export default {
         },
         legend: {
           right: 0,
+          top: -30,
           itemWidth: 124,
           itemHeight: 0,
-          itemGap: 24
+          itemGap: 24,
+          textStyle: {
+            color: '#808185',
+            fontSize: 14,
+            lineHeight: 14,
+            padding: 7
+          },
+          formatter: '\n\n{name}',
+          align:'none'
         },
         grid: {
           left: '3%',