Skip to content
Snippets Groups Projects
Commit 8129c903 authored by BOUDJEBBOUR MAYA p2312048's avatar BOUDJEBBOUR MAYA p2312048
Browse files

Update visu steps (date)

parent e40c0605
No related branches found
No related tags found
No related merge requests found
......@@ -27,7 +27,7 @@ fetch('final_combined_with_all_data.json')
.style("margin-top", "20px");
// Définir les années et la plage d'affichage
const years = [2021, 2022, 2023, 2024];
const years = [2022, 2023, 2024];
// Créer le slider
const sliderContainer = d3.select("#visualization")
......@@ -176,7 +176,7 @@ fetch('final_combined_with_all_data.json')
}
// Initialisation de la visualisation avec 2024
updateVisualization(years[3]);
updateVisualization(years[2]);
// Mettre à jour la visualisation lorsque le slider est déplacé
rangeSlider.on("input", function() {
......
......@@ -171,6 +171,8 @@ fetch('final_combined_with_all_data.json')
tooltip.transition().duration(500).style("opacity", 0);
});
});
}
// Initialisation de la visualisation
......
......@@ -244,7 +244,7 @@ function renderStepsVisualization() {
.append("g")
.attr("transform", `translate(${margin.left},${margin.top})`);
const years = [2021, 2022, 2023, 2024];
const years = [2022, 2023, 2024];
const sliderContainer = d3.select("#slider-container");
const rangeSlider = sliderContainer.append("input")
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment