From 70e09f01bcdf43aab3e46073455d6c7ec9f1f0d5 Mon Sep 17 00:00:00 2001 From: Olivier Swaak Date: Sun, 14 Jul 2024 12:31:10 +0200 Subject: [PATCH] feat: svg line for errorbar https://github.com/NatuurkundePracticumAmsterdam/ecpc/issues/24#issuecomment-2227295768 --- docs/assets/uncertainty/uncertainty.js | 5 +++++ docs/mvc.md | 11 +++++++++-- 2 files changed, 14 insertions(+), 2 deletions(-) diff --git a/docs/assets/uncertainty/uncertainty.js b/docs/assets/uncertainty/uncertainty.js index b8bb020..58f2946 100644 --- a/docs/assets/uncertainty/uncertainty.js +++ b/docs/assets/uncertainty/uncertainty.js @@ -53,6 +53,11 @@ function updateCentre() { var dx = Math.pow(x_square_sum, 0.5) / xs.length var dy = Math.pow(y_square_sum, 0.5) / ys.length + const xbar = document.getElementById("bar"); + const click_box = document.getElementById("click_box"); + var rect = click_box.getBoundingClientRect(); + xbar.x1.baseVal.value = dx; + const meanpoint = document.getElementById("mean_point"); meanpoint.style.left = x + "%"; meanpoint.style.top = y + "%"; diff --git a/docs/mvc.md b/docs/mvc.md index dfe3984..f35a81c 100644 --- a/docs/mvc.md +++ b/docs/mvc.md @@ -108,11 +108,18 @@ Het oorspronkelijke script dat je gebruikte voor je meting is steeds leger gewor 1. Gebruik het plan om je eigen code aan te passen en test dat het werkt.
+
-
+
+
+
-
+
+ + +
+
\ No newline at end of file