Ver código fonte

图表添加颜色

网友小郑 1 ano atrás
pai
commit
d66a20875c

+ 4 - 1
src/views/homepage/gdbh.vue

@@ -55,7 +55,10 @@ export default {
                 },
                 legend: {
                     left: '70%',
-                    top: '15%'
+                    top: '15%',
+                    textStyle: {
+                        color: '#ffffff' // 设置图例字体颜色为红色
+                    }
                 },
                 series: [
                     {

+ 4 - 1
src/views/homepage/kczy.vue

@@ -48,7 +48,10 @@ export default {
                     trigger: 'item'
                 },
                 legend: {
-                    top: 'bottom'
+                    top: 'bottom',
+                    textStyle: {
+                        color: '#ffffff' // 设置图例字体颜色为红色
+                    }
                 },
                 series: [
                     {

+ 4 - 1
src/views/homepage/zrzy.vue

@@ -31,7 +31,10 @@ export default {
                     trigger: 'item'
                 },
                 legend: {
-                    top: 'bottom'
+                    top: 'bottom',
+                    textStyle: {
+                        color: '#ffffff' // 设置图例字体颜色为红色
+                    }
                 },
                 series: [
                     {