From dc2e120ea42ac0dc27e8e4c777cd8e067d8a47fe Mon Sep 17 00:00:00 2001 From: IrisVega Date: Wed, 24 Jul 2024 11:47:12 +0800 Subject: [PATCH] Please enter the commit message for your changes. Lines starting with '#' will be ignored, and an empty message aborts the commit. On branch main Your branch is up to date with 'RQteafactory-NodeJS/main'. Changes to be committed: modified: static/css/sensor-1.css modified: static/js/sensor-1.js --- static/css/sensor-1.css | 2 +- static/js/sensor-1.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/static/css/sensor-1.css b/static/css/sensor-1.css index e0e1800..8650e21 100644 --- a/static/css/sensor-1.css +++ b/static/css/sensor-1.css @@ -19,7 +19,7 @@ body,html { } .bottom { - height: 70%; + height: 75%; width: 100%; display: flex; justify-content: center; diff --git a/static/js/sensor-1.js b/static/js/sensor-1.js index 90ce3de..2f36d97 100644 --- a/static/js/sensor-1.js +++ b/static/js/sensor-1.js @@ -40,7 +40,7 @@ document.addEventListener('DOMContentLoaded', function () { tooltip: { trigger: 'axis' }, legend: { data: ['温度'], textStyle: { color: 'white' } }, xAxis: { type: 'category', data: timestamps, axisLabel: { color: 'white' } }, - yAxis: { type: 'value', axisLabel: { color: 'white' } }, + yAxis: { type: 'value',min:0,max:400, axisLabel: { color: 'white' } }, series: [{ name: '温度', type: 'line', data: temperatures }] }; myChart.setOption(option);