Update script.js
This commit is contained in:
parent
9e3190d759
commit
54613b7c9a
1 changed files with 2 additions and 2 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue