From 54613b7c9a5b704e4ed6eb6fbd1f6c9e214f0189 Mon Sep 17 00:00:00 2001 From: dlawler489 <104159223@student.swin.edu.au> Date: Tue, 29 Apr 2025 19:25:52 +1000 Subject: [PATCH] Update script.js --- script/script.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/script/script.js b/script/script.js index 0d934e6..feb4a39 100644 --- a/script/script.js +++ b/script/script.js @@ -175,11 +175,11 @@ d3.csv("PHSwithContinent.csv").then(function(data) { const c = d3.select("#continentSelect").property("value"); const s = d3.select("#sexSelect").property("value"); const e = d3.select("#incomeSelect").property("value"); - const chartType = d3.select("#chartTypeSelect").property("value"); // 🆕 Get selected chart type + const chartType = d3.select("#chartTypeSelect").property("value"); //Get selected chart type const parts = [ "education_health", - chartType, // 🆕 Add chart type into the filename + chartType, //Add chart type into the filename c !== "All" ? c : null, s !== "All" ? s : null, e !== "All" ? e.replace(/[^a-zA-Z0-9]+/g, "_").toLowerCase() : null