feat: implement interactive weather map application with city markers, detail panel, and temperature forecast chart.

This commit is contained in:
2569718930@qq.com
2026-03-05 19:45:57 +08:00
parent b4e323402d
commit d29cb15c41
2 changed files with 14 additions and 0 deletions
+12
View File
@@ -1167,12 +1167,14 @@ async function openHistoryModal() {
const actuals = [];
const debs = [];
const mus = [];
const mgms = [];
data.forEach((row) => {
dates.push(row.date);
actuals.push(row.actual);
debs.push(row.deb);
mus.push(row.mu);
mgms.push(row.mgm);
if (row.actual != null && row.deb != null) {
debErrors.push(Math.abs(row.actual - row.deb));
@@ -1242,6 +1244,16 @@ async function openHistoryModal() {
tension: 0.2,
pointRadius: 3,
},
{
label: "MGM 官方预报",
data: mgms,
borderColor: "#fb923c", // orange
backgroundColor: "transparent",
borderWidth: 2,
tension: 0.2,
pointRadius: 3,
hidden: false, // Show by default for Ankara
},
],
},
options: {