Removed anonymity for bar graphs - still exists for text comments

This commit is contained in:
Peter Edmond 2025-06-18 12:36:32 +01:00
parent 8b1e862c3c
commit 8ed3296e0d
2 changed files with 7 additions and 6 deletions

View File

@ -314,9 +314,10 @@ function doBarData(id,qid, survey, Q1=0, Q2=0, Q3=0 ) {
const total = Object.values(bardata).reduce((sum, value) => sum + value, 0); const total = Object.values(bardata).reduce((sum, value) => sum + value, 0);
//console.log(total); //console.log(total);
document.getElementById("record_no").textContent = total; document.getElementById("record_no").textContent = total;
if (total < 8){ //Anonymity filter commented out for bar graphs only
return; //if (total < 8){
} // return;
//}
drawBar(id,bardata); drawBar(id,bardata);
// return data; // Should be an array like [{ value: -3, count: 2 }, ..., { value: 3, count: 5 }] // return data; // Should be an array like [{ value: -3, count: 2 }, ..., { value: 3, count: 5 }]

View File

@ -126,17 +126,17 @@
<label for="location">Where do you work in the organisation?:</label><br> <label for="location">Where do you work in the organisation?:</label><br>
<select id="location" name="location"> <select id="location" name="location">
<option value="0">Any</option> <option value="0">All</option>
</select> </select>
<br> <br>
<label for="level">Where operational level do you work at in the organisation?:</label><br> <label for="level">Where operational level do you work at in the organisation?:</label><br>
<select id="level" name="level"> <select id="level" name="level">
<option value="0">Any</option> <option value="0">All</option>
</select> </select>
<br> <br>
<label for="gov">Have you ever held one of the following roles in our business?:</label><br> <label for="gov">Have you ever held one of the following roles in our business?:</label><br>
<select id="gov" name="gov"> <select id="gov" name="gov">
<option value="0">Any</option> <option value="0">All</option>
</select> </select>
<br> <br>
<br> <br>