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);