dashboard/static/js/sresults.js
//append a svg file based on selected question num to div-id: line-chart
append a svg file based on selected question num to div-id: line-chart
append a svg file based on selected question num to div - id : line - chart
function append_img(div_id){
    var div = $(div_id);
    var qnum = questionkey[sel_ques]
    div.empty().prepend('<object data='+ base + 'static/image/' + 'q' + qnum + '.svg?' + Math.random() + ' type="image/svg+xml" width="100%" />');
}
function append_img ( div_id ) { var div = $ ( div_id ) ; var qnum = questionkey [ sel_ques ] div . empty ( ) . prepend ( '<object data=' + base + 'static/image/' + 'q' + qnum + '.svg?' + Math . random ( ) + ' type="image/svg+xml" width="100%" />' ) ; }
append a svg file based on selected question num to div-id: line-chart
append a svg file based on selected question num to div - id : line - chart