Compare commits

...

3 Commits

Author SHA1 Message Date
4c0f0da515 feat: 优化前端页面 2025-08-30 00:05:33 +08:00
781a93cefc Revert "feat: 优化前端页面"
This reverts commit 7e24cc52c9c380194fa7a480cb11dead2c5e6bb7.
2025-08-29 23:23:13 +08:00
7e24cc52c9 feat: 优化前端页面 2025-08-29 23:14:25 +08:00

View File

@ -153,6 +153,17 @@ const WeatherChart = {
responsive: true,
maintainAspectRatio: false,
interaction: { mode: 'index', intersect: false },
layout: { padding: { top: 12, right: 16, bottom: 12, left: 16 } },
plugins: {
legend: {
display: true,
position: 'top',
align: 'center',
labels: {
padding: 16
}
}
},
scales: {
'y-temperature': { type: 'linear', display: true, position: 'left', title: { display: true, text: '温度 (°C)' } },
'y-humidity': { type: 'linear', display: true, position: 'right', title: { display: true, text: '湿度 (%)' }, grid: { drawOnChartArea: false }, min: 0, max: 100 },