From e6c72e57e320303f652e0cb0b26e5ceb50fbffe1 Mon Sep 17 00:00:00 2001 From: fengyarnom Date: Fri, 30 May 2025 11:39:26 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E9=BB=98=E8=AE=A4=E9=9A=90=E8=97=8FZ?= =?UTF-8?q?=E8=BD=B4=E5=92=8C=E6=B8=A9=E5=BA=A6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- templates/index.html | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) 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 }); }); });