From f4b635ef649a4206196b1e812bc186187859fdbd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Nick=20J=C3=BCttner?= Date: Sat, 11 Jan 2025 18:54:53 +0100 Subject: [PATCH] improve look --- index.html | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/index.html b/index.html index 9c5efc89..a71f97a3 100644 --- a/index.html +++ b/index.html @@ -129,6 +129,8 @@

Fed Data Collection

}); }; + const dataDir = 'data/'; + // Load JSON files and create charts const files = [ { name: 'm1.json', label: 'Money Supply - M1' }, @@ -140,7 +142,7 @@

Fed Data Collection

]; const loadAndCreateChart = async (fileObj) => { - const response = await fetch(fileObj.name); + const response = await fetch(dataDir + fileObj.name); const data = await response.json(); const chartId = fileObj.name.replace('.json', 'Chart');