Removed anonymity for bar graphs - still exists for text comments

This commit is contained in:
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);
//console.log(total);
document.getElementById("record_no").textContent = total;
if (total < 8){
return;
}
//Anonymity filter commented out for bar graphs only
//if (total < 8){
// return;
//}
drawBar(id,bardata);
// return data; // Should be an array like [{ value: -3, count: 2 }, ..., { value: 3, count: 5 }]