生成图片

master
夜笙歌 7 months ago
parent 794cff1fcc
commit 794cd03849

@ -7,8 +7,9 @@
<div class="container-div">
<div class="row">
<div class="centerDiv">
<div id="temInfo" style="text-align: center;white-space: nowrap"></div>
<div id="canvasDiv" style="width: 320px;height:240px;margin:0 auto;">
<div id="temInfo" style="text-align: center;white-space: nowrap;font-size: 2vw"></div>
<div id="timeInfo" style="text-align: center;white-space: nowrap;font-size: 2vw"></div>
<div id="canvasDiv" style="width: 32vw;height:24vw;margin:0 auto;">
<canvas id="canvas"></canvas>
</div>
</div>
@ -74,6 +75,7 @@
$.post(prefix+'/newDataStreak',(e)=>{
console.log(e)
$('#temInfo').html(`<span style="color:#ff0000">最高温度:${e.rows[0].maxTemperature}℃</span> <span style="color:#0b05f7">最低温度:${e.rows[0].minTemperature}℃</span> <span style="color:#0066e4">平均温度:${e.rows[0].avgTemperature}℃</span>`)
$('#timeInfo').html(`<span style="color:#0b05f7">采集时间:${e.rows[0].collectTime}℃</span> `)
let colors = []
for(i in e.rows[0]){
if(i.includes('site')){

Loading…
Cancel
Save