Skip to content

Commit

Permalink
improve look
Browse files Browse the repository at this point in the history
  • Loading branch information
njuettner committed Jan 11, 2025
1 parent bc15cf6 commit f4b635e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -129,6 +129,8 @@ <h1>Fed Data Collection</h1>
});
};

const dataDir = 'data/';

// Load JSON files and create charts
const files = [
{ name: 'm1.json', label: 'Money Supply - M1' },
Expand All @@ -140,7 +142,7 @@ <h1>Fed Data Collection</h1>
];

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');

Expand Down

0 comments on commit f4b635e

Please sign in to comment.