diff --git a/PV_Forecast/module.html b/PV_Forecast/module.html
index a7d9fd6..4ddd974 100644
--- a/PV_Forecast/module.html
+++ b/PV_Forecast/module.html
@@ -109,17 +109,6 @@
xAxis: {
type: "datetime",
- plotLines: [{
- color: "#ef4444",
- width: 2,
- value: nowMs,
- dashStyle: "Dash",
- label: {
- text: "JETZT",
- align: "right",
- style: { color: "#ef4444", fontWeight: "700" }
- }
- }]
},
yAxis: {
@@ -174,17 +163,14 @@
credits: { enabled: false }
};
- if (!chart) {
+ if (!chart) {
chart = Highcharts.chart("chart", options);
- } else {
- chart.update({
- xAxis: { plotLines: options.xAxis.plotLines }
- }, false);
-
+ } else {
chart.series[0].setData(forecast, false);
chart.series[1].setData(actual, false);
chart.redraw();
- }
+ }
+
}
(async () => {