彭宇 1 year ago
parent
commit
788e9c1dea
1 changed files with 27 additions and 29 deletions
  1. 27 29
      src/views/bigdata/chart-firecontrol.vue

+ 27 - 29
src/views/bigdata/chart-firecontrol.vue

@@ -59,35 +59,33 @@
 				        },
 				         data: xData
 				    },
-				    yAxis: {
-				        nameTextStyle:{
-				            color:'#fff',
-				        },
-				        type: 'value',
-				         axisLine: {
-				             show:false,
-				            lineStyle: {
-				                color: 'rgba(255,255,255,0.12)'
-				            },
-				        },
-				        axisLabel: {
-							 show:false,
-				            formatter: '{value}',
-				            color: '#e2e9ff',
-				        },
-				         splitLine: {
-				            lineStyle: {
-				                color: 'rgba(255,255,255,0.12)'
-				            }
-				        },
-				        axisTick:{
-				            show:true,
-
-				            lineStyle:{
-				                color:'#fff',
-				            },
-				        },
-				    },
+           yAxis: [{
+             type: 'value',
+             gridIndex: 0,
+             // splitNumber: 4,
+             splitLine: {
+               show: true,
+               lineStyle: {
+                 type: 'solid',
+                 color: '#325A9F',
+                 width: 1
+               }
+             },
+             axisTick: {
+               show: false
+             },
+             axisLine: {
+               show: false
+             },
+             axisLabel: {
+               show: true,
+               formatter: '{value}',
+               fontSize: 10,
+               textStyle: {
+                 color: '#6ad8ff' //X轴文字颜色
+               }
+             }
+           }],
 				    series: [{
 				        itemStyle:{
 				            color: new echarts.graphic.LinearGradient(0, 0, 0, 1, [{