htc 21 stundas atpakaļ
vecāks
revīzija
ff5304a717
1 mainītis faili ar 24 papildinājumiem un 6 dzēšanām
  1. 24 6
      pagesHome/pdf.vue

+ 24 - 6
pagesHome/pdf.vue

@@ -645,23 +645,41 @@
 				},
 				xAxis: {
 				  type: 'value',
-				  boundaryGap: [0, 0.01],
-                  axisLabel: {
-                    fontSize: 10
-                  }
+				  boundaryGap: [0, 0.01],
+				  splitLine: {
+					show: false
+				  },
+					// 隐藏X轴轴线和标签,使图表更干净
+				  axisLine: {
+					show: false
+				  },
+				  axisLabel: {
+					show: false // X轴刻度值也不显示
+				  }
 				},
 				yAxis: {
 				  type: 'category',
 				  data: xdata,
+				  axisLine: {
+					show: true, // 设置为 true 来显示Y轴的轴线
+					lineStyle: {
+					  color: '#ECEEF5',
+					  width: 1
+					}
+				  },
+				  // 隐藏Y轴上的小刻度线(如果你想保留可以设为true)
+				  axisTick: {
+					  show: false
+				  },
 				  axisLabel: {
 					color: '#193D59',
-					fontSize: 10
+					fontSize: 10*this.scale
 				  }
 				},
 				series: [
 				  {
 					type: 'bar',
-					barWidth: '8px',
+					barWidth: `${8*this.scale}px`,
 					data: yData
 				  }
 				]