From 8dabb5aae25e674abc4770bf65f553956224af7b Mon Sep 17 00:00:00 2001 From: Felix Delattre Date: Mon, 26 Jan 2026 09:39:53 +0100 Subject: [PATCH] Added markers. --- webapp/index.html | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/webapp/index.html b/webapp/index.html index d8b4dd0..aaec5e3 100644 --- a/webapp/index.html +++ b/webapp/index.html @@ -208,6 +208,9 @@ else ctx.lineTo(px, py); } ctx.stroke(); + ctx.fillStyle = "#888"; + const axisY = pad + plotH; + for (const t of data) ctx.fillRect(x(t.date) - 1, axisY - 1, 2, 2); const xPos = x(currentDate); ctx.strokeStyle = "#f00"; @@ -276,6 +279,9 @@ else ctx.lineTo(px, py); } ctx.stroke(); + ctx.fillStyle = "#888"; + const axisY = pad + plotH; + for (const t of data) ctx.fillRect(x(t.date) - 1, axisY - 1, 2, 2); const currentDate = dateFromDays(parseInt(slider.value)); const xPos = x(currentDate); @@ -360,6 +366,10 @@ ctx.stroke(); } + ctx.fillStyle = "#888"; + const axisY = pad + plotH; + for (const t of [...s2data, ...fusiondata]) ctx.fillRect(x(t.date) - 1, axisY - 1, 2, 2); + const currentDate = dateFromDays(parseInt(slider.value)); const xPos = x(currentDate); ctx.strokeStyle = "#f00"; @@ -430,6 +440,9 @@ else ctx.lineTo(px, py); } ctx.stroke(); + ctx.fillStyle = "#888"; + const axisY = pad + plotH; + for (const t of data) ctx.fillRect(x(t.date) - 1, axisY - 1, 2, 2); const xPos = x(currentDate); ctx.strokeStyle = "#f00";