|
@@ -1,7 +1,7 @@
|
|
|
<!--
|
|
|
* @Author: your name
|
|
|
* @Date: 2025-01-15 15:49:57
|
|
|
- * @LastEditTime: 2025-02-21 17:22:38
|
|
|
+ * @LastEditTime: 2025-03-13 16:25:02
|
|
|
* @LastEditors: bogon
|
|
|
* @Description: In User Settings Edit
|
|
|
* @FilePath: /performance-test/src/views/performance/components/chartsCom/FaultUntal.vue
|
|
@@ -80,6 +80,9 @@ export default {
|
|
|
tickvals: this.faultTypes.slice(0, 10), // 保证这里是字符串数组
|
|
|
ticktext: this.faultTypes.slice(0, 10), // 确保 ticktext 使用相同的标签
|
|
|
tickfont: { size: 12 },
|
|
|
+ gridcolor: "rgb(255,255,255)",
|
|
|
+ tickcolor: "rgb(255,255,255)",
|
|
|
+ backgroundcolor: "#e5ecf6",
|
|
|
},
|
|
|
yaxis: {
|
|
|
title: "故障次数",
|
|
@@ -88,6 +91,9 @@ export default {
|
|
|
side: "left", // 左侧的 Y 轴
|
|
|
showline: true,
|
|
|
linecolor: "#64ADC2",
|
|
|
+ gridcolor: "rgb(255,255,255)",
|
|
|
+ tickcolor: "rgb(255,255,255)",
|
|
|
+ backgroundcolor: "#e5ecf6",
|
|
|
},
|
|
|
yaxis2: {
|
|
|
title: "故障时长(秒)",
|
|
@@ -97,10 +103,14 @@ export default {
|
|
|
side: "right", // 右侧的 Y 轴
|
|
|
position: 1, // 调整右侧轴的位置
|
|
|
showline: true,
|
|
|
+
|
|
|
// tickvals: this.faultTypes.slice(0, 10), // 保证这里是字符串数组
|
|
|
// ticktext: this.faultTypes.slice(0, 10), // 确保 ticktext 使用相同的标签
|
|
|
linecolor: "#1A295D", // 设置右侧轴线颜色
|
|
|
},
|
|
|
+ plot_bgcolor: "#e5ecf6",
|
|
|
+ gridcolor: "#fff",
|
|
|
+ bgcolor: "#e5ecf6", // 设置背景颜色
|
|
|
showlegend: false, // 显示图例
|
|
|
margin: {
|
|
|
t: 80, // 上边距
|