diff --git a/drawbar.js b/drawbar.js index 11a137c..da50dfb 100644 --- a/drawbar.js +++ b/drawbar.js @@ -289,6 +289,8 @@ function doBarData(id,qid, survey, Q1=0, Q2=0, Q3=0 ) { formData.append('Q2', Q2); formData.append('Q3', Q3); + console.log("Selectors:",Q1,Q2,Q3); + // Send the form data using fetch fetch('get_qid_counts.php', { method: 'POST', @@ -312,7 +314,7 @@ 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 < 9){ + if (total < 8){ return; } drawBar(id,bardata);