Refactor graph creation and update methods

This commit is contained in:
sietse jonker
2024-03-31 21:24:52 +02:00
parent ae082b53a4
commit 76532c538b
2 changed files with 17 additions and 19 deletions

View File

@@ -119,17 +119,12 @@ function fetchData() {
.then((data) => {
createFilterContainer();
processor.update(data);
processor.graph();
processor.makeGraph();
processor.updateGraph();
})
.catch((error) => {
console.error("Error fetching data:", error);
});
}
fetchData();
// Function to create the graph
function createGraph() {
const graph = new Graph("graph");
graph.updateGraph();
}
fetchData();