diff --git a/templates/index.html b/templates/index.html
index d7119ad..5ff9abc 100644
--- a/templates/index.html
+++ b/templates/index.html
@@ -158,12 +158,9 @@
-
+
-
-
-
-
+
@@ -641,12 +638,16 @@
dataTypes.forEach((type, typeIndex) => {
const colorIndex = (sensorIndex * dataTypes.length + typeIndex) % colors.length;
+ // 默认隐藏Z轴和温度数据
+ const isHidden = type.key === 'z' || type.key === 'temperature';
+
datasets.push({
label: `探头${sensorID} - ${type.label}`,
data: sensorData.map(item => item[type.key]),
fill: false,
borderColor: colors[colorIndex],
- tension: 0.1
+ tension: 0.1,
+ hidden: isHidden
});
});
});