Administrator 2 gadi atpakaļ
vecāks
revīzija
0af0982a58
1 mainītis faili ar 18 papildinājumiem un 13 dzēšanām
  1. 18 13
      src/views/Map3d/components/ysltj.vue

+ 18 - 13
src/views/Map3d/components/ysltj.vue

@@ -28,22 +28,26 @@
 				// 多列柱状图
 				this.option = {
 					xAxis: {
+						axisLabel: {
+							formatter: "{value}",
+							color: "#e2e9ff",
+						},
 						data: this.xData,
 					},
 
-					// tooltip: { //提示框组件
-					// 	trigger: 'item', //item数据项图形触发,主要在散点图,饼图等无类目轴的图表中使用。
-					// 	axisPointer: {
-					// 		// 坐标轴指示器,坐标轴触发有效
-					// 		type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'
-					// 	},
-					// 	backgroundColor: "rgba(255,255,255,0.2)",
-					// 	borderColor: "rgba(255,255,255,0.2)",
-					// 	textStyle: { // 提示框浮层的文本样式。
-					// 		color: 'rgba(255,255,255,0.8)',
-
-					// 	},
-					// },
+					tooltip: { //提示框组件
+						trigger: 'item', //item数据项图形触发,主要在散点图,饼图等无类目轴的图表中使用。
+						axisPointer: {
+							// 坐标轴指示器,坐标轴触发有效
+							type: 'shadow' // 默认为直线,可选为:'line' | 'shadow'
+						},
+						backgroundColor: "rgba(255,255,255,0.2)",
+						borderColor: "rgba(255,255,255,0.2)",
+						textStyle: { // 提示框浮层的文本样式。
+							color: 'rgba(255,255,255,0.8)',
+
+						},
+					},
 					toolbox: {
 						show: true,
 						/* feature: {
@@ -58,6 +62,7 @@
 						textStyle: {
 							color: '#ffffff' //字体颜色
 						},
+						padding: 20,
 
 					},
 					yAxis: {