We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 29266f1 commit f3dda72Copy full SHA for f3dda72
1 file changed
static/js/script.js
@@ -952,6 +952,14 @@ function showShapError(message) {
952
`;
953
}
954
955
+function getTodayForecastPoint(forecastData) {
956
+
957
+ const todayStr = new Date().toISOString().split("T")[0];
958
+ // → ergibt z.B. "2026-03-17"
959
960
+ return forecastData.find(d => d.date === todayStr);
961
+}
962
963
async function loadForecast() {
964
965
const response = await fetch("/api/forecast");
@@ -1139,6 +1147,11 @@ async function loadForecast() {
1139
1147
},
1140
1148
1141
1149
});
1150
+ const todayPoint = getTodayForecastPoint(data.forecast) || data.forecast[0];
1151
+ if (todayPoint) {
1152
+ showShapDetails(todayPoint);
1153
+ document.getElementById("card-shap")?.style.display = "block";
1154
+ };
1142
1155
1143
1156
1144
1157
async function loadFeatureImportance() {
0 commit comments