Sorted out refreshing of graphics for inverted triangles and also for bar graphs if no data was available

This commit is contained in:
2025-06-01 21:58:00 +01:00
parent bf17427cc4
commit 827924bd26
4 changed files with 81 additions and 37 deletions

View File

@@ -44,7 +44,7 @@ function insertQualifiers(){
select.appendChild(option);
});
document.querySelector('label[for="level"]').textContent = "New question 2";
document.querySelector('label[for="level"]').textContent = parsed["2"][0];
// .shift(); //
parsed["2"][0] = "Any";
@@ -60,7 +60,7 @@ function insertQualifiers(){
select.appendChild(option);
});
document.querySelector('label[for="gov"]').textContent = "New question 3";
document.querySelector('label[for="gov"]').textContent = parsed["3"][0];
parsed["3"][0] = "Any";
select = document.getElementById('gov');
optionCount = select.options.length;
@@ -74,7 +74,8 @@ function insertQualifiers(){
select.appendChild(option);
});
//Disable the surveyId input
document.getElementById("surveyId").disabled = true;
/*document.getElementById("record_no").textContent = total;
if (total < 9){