For some reason my code fails to draw when i add this into the code. is anything wrong ? thanks
Code:
for (i = 0; i < radios.length+1; i++){
if(radios[i].checked){
question1 = radios[i].value;
}
}
data = [question1,2,2,2,2,2,2];
drawGraph();
Lots of things wrong, like where is the rest of the code?
For example:
1. What are the values of the radio buttons?
2. Where is 'question1' defined to receive the value of the radio button?
3. What does the 'data[]' array represent?
4. What does 'drawGraph()' do? Especially in relationship to the radio button selection?
5. Where is 'question1' used in the for...loop?
Bookmarks