Index: lams_tool_survey/conf/language/ApplicationResources.properties =================================================================== diff -u -racfcd68cefd9d696f1b8ced611f7bedb30750024 -r6a5d35ec57dde95eae93fb628d669af257d36949 --- lams_tool_survey/conf/language/ApplicationResources.properties (.../ApplicationResources.properties) (revision acfcd68cefd9d696f1b8ced611f7bedb30750024) +++ lams_tool_survey/conf/language/ApplicationResources.properties (.../ApplicationResources.properties) (revision 6a5d35ec57dde95eae93fb628d669af257d36949) @@ -158,4 +158,8 @@ message.view.bar.chart=View column chart message.possible.answers=Possible answers message.total.user.response=Total user response -message.learner.choose.answer = {0} percent leaners of the class have chosen this answer. \ No newline at end of file +message.learner.choose.answer.percentage = {0} percent leaners of the class have chosen this answer. +message.learner.choose.answer=The learner has chosen this answer +error.chart.gen=Error occurs during generating chart, please try again. +title.chart.report=Report of Individual Question +label.learner=Learner \ No newline at end of file Index: lams_tool_survey/conf/xdoclet/struts-actions.xml =================================================================== diff -u -racfcd68cefd9d696f1b8ced611f7bedb30750024 -r6a5d35ec57dde95eae93fb628d669af257d36949 --- lams_tool_survey/conf/xdoclet/struts-actions.xml (.../struts-actions.xml) (revision acfcd68cefd9d696f1b8ced611f7bedb30750024) +++ lams_tool_survey/conf/xdoclet/struts-actions.xml (.../struts-actions.xml) (revision 6a5d35ec57dde95eae93fb628d669af257d36949) @@ -229,25 +229,19 @@ - - + parameter="viewChartReport" > + - - - - - - + parameter="listAnswers" > + getSessionUsers(Long sessionId); + //****************************************************************************************** //********** Repository methods *********************** //****************************************************************************************** @@ -227,8 +235,6 @@ * @return */ Map> getReflectList(Long contentId); - - } Index: lams_tool_survey/src/java/org/lamsfoundation/lams/tool/survey/service/SurveyServiceImpl.java =================================================================== diff -u -rf0c3f41d54ef4f390ef3f93f28c0679c46b6730c -r6a5d35ec57dde95eae93fb628d669af257d36949 --- lams_tool_survey/src/java/org/lamsfoundation/lams/tool/survey/service/SurveyServiceImpl.java (.../SurveyServiceImpl.java) (revision f0c3f41d54ef4f390ef3f93f28c0679c46b6730c) +++ lams_tool_survey/src/java/org/lamsfoundation/lams/tool/survey/service/SurveyServiceImpl.java (.../SurveyServiceImpl.java) (revision 6a5d35ec57dde95eae93fb628d669af257d36949) @@ -89,6 +89,7 @@ import org.lamsfoundation.lams.usermanagement.dto.UserDTO; import org.lamsfoundation.lams.usermanagement.service.IUserManagementService; import org.lamsfoundation.lams.util.MessageService; +import org.lamsfoundation.lams.util.WebUtil; import org.lamsfoundation.lams.util.audit.IAuditService; import org.lamsfoundation.lams.util.wddx.WDDXProcessor; import org.lamsfoundation.lams.util.wddx.WDDXProcessorConversionException; @@ -295,8 +296,10 @@ return (SurveyUser) surveyUserDao.getObject(SurveyUser.class, uid); } + public List getSessionUsers(Long sessionId){ + return surveyUserDao.getBySessionID(sessionId); + } - public void deleteQuestion(Long uid) { surveyQuestionDao.removeObject(SurveyQuestion.class, uid); @@ -330,10 +333,8 @@ public SurveyQuestion getQuestionResponse(Long sessionId, Long questionUid){ SurveyQuestion question = surveyQuestionDao.getByUid(questionUid); + SurveyWebUtils.createShortTitle(question); - if(question.getType() == SurveyConstants.QUESTION_TYPE_TEXT_ENTRY) - return question; - //get question all answer from this session List answsers = surveyAnswerDao.getSessionAnswer(sessionId, questionUid); @@ -348,40 +349,46 @@ //initial a array to hold how many time chose has been done for a option or open text. int optSize = options.size(); - if(question.isAppendText()) + if(question.isAppendText() || question.getType() == SurveyConstants.QUESTION_TYPE_TEXT_ENTRY) optSize++; int[] choose = new int[optSize]; Arrays.fill(choose, 0); //sum up all option and open text (if has) have been selected count list - int answerSum = 1; + int answerSum = 0; if(answsers != null){ for (SurveyAnswer answer : answsers) { String[] choseOpt = SurveyWebUtils.getChoiceList(answer.getAnswerChoices()); for (String optUid : choseOpt) { if(optMap.containsKey(optUid)) choose[optMap.get(optUid)]++; } - if(question.isAppendText() && !StringUtils.isBlank(answer.getAnswerText())) + if((question.isAppendText() + || question.getType() == SurveyConstants.QUESTION_TYPE_TEXT_ENTRY) + && !StringUtils.isBlank(answer.getAnswerText())) choose[optSize-1]++; answerSum ++; } } //caculate the percentage of answer response idx=0; + if(answerSum == 0){ + answerSum = 1; + } for (SurveyOption option : options) { - option.setReponse((double)choose[idx]/(double)answerSum); - option.setReponseFormatStr(new Integer((int) option.getReponse()).toString()); + option.setResponse((double)choose[idx]/(double)answerSum * 100d); + option.setResponseFormatStr(new Integer((int) option.getResponse()).toString()); option.setResponseCount(choose[idx]); idx++; } - if(question.isAppendText()){ - question.setOpenResponse((double)choose[idx]/(double)answerSum); + if(question.isAppendText() || question.getType() == SurveyConstants.QUESTION_TYPE_TEXT_ENTRY){ + question.setOpenResponse((double)choose[idx]/(double)answerSum * 100d); question.setOpenResponseFormatStr(new Integer((int) question.getOpenResponse()).toString()); question.setOpenResponseCount(choose[idx]); } + return question; } @@ -408,6 +415,11 @@ return summary; } + + public SurveyQuestion getQuestion(Long questionUid) { + return surveyQuestionDao.getByUid(questionUid); + } + //***************************************************************************** // private methods //***************************************************************************** @@ -819,4 +831,5 @@ } + } Index: lams_tool_survey/src/java/org/lamsfoundation/lams/tool/survey/util/SurveyUserComparator.java =================================================================== diff -u --- lams_tool_survey/src/java/org/lamsfoundation/lams/tool/survey/util/SurveyUserComparator.java (revision 0) +++ lams_tool_survey/src/java/org/lamsfoundation/lams/tool/survey/util/SurveyUserComparator.java (revision 6a5d35ec57dde95eae93fb628d669af257d36949) @@ -0,0 +1,17 @@ +package org.lamsfoundation.lams.tool.survey.util; + +import java.util.Comparator; + +import org.lamsfoundation.lams.tool.survey.model.SurveyUser; + +public class SurveyUserComparator implements Comparator { + + public int compare(SurveyUser o1, SurveyUser o2) { + if(o1 != null && o2 != null){ + return o1.getLoginName().compareTo( o2.getLoginName()); + }else if(o1 != null) + return 1; + else + return -1; + } +} Index: lams_tool_survey/src/java/org/lamsfoundation/lams/tool/survey/util/SurveyWebUtils.java =================================================================== diff -u -rf0c3f41d54ef4f390ef3f93f28c0679c46b6730c -r6a5d35ec57dde95eae93fb628d669af257d36949 --- lams_tool_survey/src/java/org/lamsfoundation/lams/tool/survey/util/SurveyWebUtils.java (.../SurveyWebUtils.java) (revision f0c3f41d54ef4f390ef3f93f28c0679c46b6730c) +++ lams_tool_survey/src/java/org/lamsfoundation/lams/tool/survey/util/SurveyWebUtils.java (.../SurveyWebUtils.java) (revision 6a5d35ec57dde95eae93fb628d669af257d36949) @@ -24,7 +24,9 @@ /* $$Id$$ */ package org.lamsfoundation.lams.tool.survey.util; +import org.apache.commons.lang.StringUtils; import org.lamsfoundation.lams.tool.survey.model.Survey; +import org.lamsfoundation.lams.tool.survey.model.SurveyQuestion; import org.lamsfoundation.lams.tool.survey.web.action.MonitoringAction; @@ -37,6 +39,8 @@ */ public class SurveyWebUtils { + private static final int SHORT_TITLE_LENGTH = 60; + public static boolean isSurveyEditable(Survey survey) { if ( (survey.isDefineLater() == true) && (survey.isContentInUse()==true) ) { @@ -68,4 +72,9 @@ return choiceList.split("&"); } + public static void createShortTitle(SurveyQuestion question) { + String desc = question.getDescription(); + desc = desc.replaceAll("<(.|\n)*?>", ""); + question.setShortTitle(StringUtils.abbreviate(desc,SHORT_TITLE_LENGTH)); + } } Index: lams_tool_survey/src/java/org/lamsfoundation/lams/tool/survey/web/action/AuthoringAction.java =================================================================== diff -u -rf0c3f41d54ef4f390ef3f93f28c0679c46b6730c -r6a5d35ec57dde95eae93fb628d669af257d36949 --- lams_tool_survey/src/java/org/lamsfoundation/lams/tool/survey/web/action/AuthoringAction.java (.../AuthoringAction.java) (revision f0c3f41d54ef4f390ef3f93f28c0679c46b6730c) +++ lams_tool_survey/src/java/org/lamsfoundation/lams/tool/survey/web/action/AuthoringAction.java (.../AuthoringAction.java) (revision 6a5d35ec57dde95eae93fb628d669af257d36949) @@ -868,7 +868,7 @@ retriveQuestionForDisplay(item); } } - private void retriveQuestionForDisplay(SurveyQuestion item) { + public static void retriveQuestionForDisplay(SurveyQuestion item) { String desc = item.getDescription(); desc = desc.replaceAll("<(.|\n)*?>", ""); item.setShortTitle(StringUtils.abbreviate(desc,SHORT_TITLE_LENGTH)); Index: lams_tool_survey/src/java/org/lamsfoundation/lams/tool/survey/web/action/ChartAction.java =================================================================== diff -u -rf0c3f41d54ef4f390ef3f93f28c0679c46b6730c -r6a5d35ec57dde95eae93fb628d669af257d36949 --- lams_tool_survey/src/java/org/lamsfoundation/lams/tool/survey/web/action/ChartAction.java (.../ChartAction.java) (revision f0c3f41d54ef4f390ef3f93f28c0679c46b6730c) +++ lams_tool_survey/src/java/org/lamsfoundation/lams/tool/survey/web/action/ChartAction.java (.../ChartAction.java) (revision 6a5d35ec57dde95eae93fb628d669af257d36949) @@ -23,14 +23,23 @@ /* $$Id$$ */ package org.lamsfoundation.lams.tool.survey.web.action; +import static org.lamsfoundation.lams.tool.survey.SurveyConstants.ATTR_QUESTION_UID; +import static org.lamsfoundation.lams.tool.survey.SurveyConstants.CHART_TYPE; +import static org.lamsfoundation.lams.tool.survey.SurveyConstants.ERROR_MSG_CHART_ERROR; +import static org.lamsfoundation.lams.tool.survey.SurveyConstants.MSG_BARCHART_CATEGORY_AXIS_LABEL; +import static org.lamsfoundation.lams.tool.survey.SurveyConstants.MSG_BARCHART_TITLE; +import static org.lamsfoundation.lams.tool.survey.SurveyConstants.MSG_BARCHART_VALUE_AXIS_LABEL; +import static org.lamsfoundation.lams.tool.survey.SurveyConstants.MSG_OPEN_RESPONSE; +import static org.lamsfoundation.lams.tool.survey.SurveyConstants.MSG_PIECHART_TITLE; +import static org.lamsfoundation.lams.tool.survey.SurveyConstants.QUESTION_TYPE_TEXT_ENTRY; +import static org.lamsfoundation.lams.tool.survey.SurveyConstants.SURVEY_SERVICE; +import static org.lamsfoundation.lams.tool.survey.SurveyConstants.OPTION_SHORT_HEADER; + import java.io.IOException; import java.io.OutputStream; -import java.util.Iterator; -import java.util.Map; import java.util.Set; import javax.servlet.ServletException; -import javax.servlet.http.HttpServlet; import javax.servlet.http.HttpServletRequest; import javax.servlet.http.HttpServletResponse; @@ -46,9 +55,6 @@ import org.jfree.chart.plot.PlotOrientation; import org.jfree.data.category.DefaultCategoryDataset; import org.jfree.data.general.DefaultPieDataset; -import static org.lamsfoundation.lams.tool.survey.SurveyConstants.*; - -import org.lamsfoundation.lams.tool.survey.SurveyConstants; import org.lamsfoundation.lams.tool.survey.model.SurveyOption; import org.lamsfoundation.lams.tool.survey.model.SurveyQuestion; import org.lamsfoundation.lams.tool.survey.service.ISurveyService; @@ -64,14 +70,14 @@ * @version $Revision$ */ public class ChartAction extends Action { - private static final String OPTION_SHORT_HEADER = "a"; static Logger logger = Logger.getLogger(ChartAction.class.getName()); private MessageResources resource; public ActionForward execute(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) throws IOException, ServletException { + resource = getResources(request); OutputStream out= response.getOutputStream(); String type= WebUtil.readStrParam(request, CHART_TYPE); @@ -83,7 +89,8 @@ SurveyQuestion question =service.getQuestionResponse(sessionId,questionUid); if(question.getType() == QUESTION_TYPE_TEXT_ENTRY){ logger.error("Error question type : Text entry can not generate chart."); - return mapping.findForward(ERROR); + response.getWriter().print(resource.getMessage(ERROR_MSG_CHART_ERROR)); + return null; } //Try to create chart @@ -94,14 +101,14 @@ chart = createBarChart (question); } - resource = getResources(request); //send chart to response output stream if (chart != null){ response.setContentType("image/png"); ChartUtilities.writeChartAsPNG(out, chart, 400, 300); return null; }else{ - return mapping.findForward(ERROR); + response.getWriter().print(resource.getMessage(ERROR_MSG_CHART_ERROR)); + return null; } } @@ -114,7 +121,7 @@ Set options = question.getOptions(); int optIdx = 1; for (SurveyOption option : options) { - data.setValue(OPTION_SHORT_HEADER + optIdx, (Number) option.getReponse()); + data.setValue(OPTION_SHORT_HEADER + optIdx, (Number) option.getResponse()); optIdx++; } @@ -135,7 +142,7 @@ Set options = question.getOptions(); int optIdx = 1; for (SurveyOption option : options) { - data.setValue((Number)option.getReponse(), OPTION_SHORT_HEADER + optIdx, OPTION_SHORT_HEADER + optIdx); + data.setValue((Number)option.getResponse(), OPTION_SHORT_HEADER + optIdx, OPTION_SHORT_HEADER + optIdx); optIdx++; } Index: lams_tool_survey/src/java/org/lamsfoundation/lams/tool/survey/web/action/MonitoringAction.java =================================================================== diff -u -rf0c3f41d54ef4f390ef3f93f28c0679c46b6730c -r6a5d35ec57dde95eae93fb628d669af257d36949 --- lams_tool_survey/src/java/org/lamsfoundation/lams/tool/survey/web/action/MonitoringAction.java (.../MonitoringAction.java) (revision f0c3f41d54ef4f390ef3f93f28c0679c46b6730c) +++ lams_tool_survey/src/java/org/lamsfoundation/lams/tool/survey/web/action/MonitoringAction.java (.../MonitoringAction.java) (revision 6a5d35ec57dde95eae93fb628d669af257d36949) @@ -24,11 +24,16 @@ /* $Id$ */ package org.lamsfoundation.lams.tool.survey.web.action; +import static org.lamsfoundation.lams.tool.survey.SurveyConstants.CHART_TYPE; +import static org.lamsfoundation.lams.tool.survey.SurveyConstants.ATTR_QUESTION; +import static org.lamsfoundation.lams.tool.survey.SurveyConstants.ATTR_ANSWER_LIST; + import java.io.IOException; import java.util.List; import java.util.Map; import java.util.Set; import java.util.SortedMap; +import java.util.TreeMap; import javax.servlet.ServletException; import javax.servlet.http.HttpServletRequest; @@ -48,6 +53,7 @@ import org.lamsfoundation.lams.tool.survey.model.SurveySession; import org.lamsfoundation.lams.tool.survey.model.SurveyUser; import org.lamsfoundation.lams.tool.survey.service.ISurveyService; +import org.lamsfoundation.lams.tool.survey.util.SurveyUserComparator; import org.lamsfoundation.lams.tool.survey.util.SurveyWebUtils; import org.lamsfoundation.lams.util.WebUtil; import org.lamsfoundation.lams.web.util.AttributeNames; @@ -67,19 +73,31 @@ return summary(mapping, form, request, response); } - if (param.equals("listuser")) { - return listuser(mapping, form, request, response); + if (param.equals("viewChartReport")) { + return viewChartReport(mapping, form, request, response); } + if (param.equals("listAnswers")) { + return listAnswers(mapping, form, request, response); + } + if (param.equals("viewReflection")) { return viewReflection(mapping, form, request, response); } - return mapping.findForward(SurveyConstants.ERROR); } + /** + * Summary page action. + * @param mapping + * @param form + * @param request + * @param response + * @return + */ + private ActionForward summary(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) { //initial Session Map @@ -103,18 +121,56 @@ return mapping.findForward(SurveyConstants.SUCCESS); } + /** + * Display pie chart or bar chart for one question. + * @param mapping + * @param form + * @param request + * @param response + * @return + */ + private ActionForward viewChartReport(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) { + Long sessionId = WebUtil.readLongParam(request, AttributeNames.PARAM_TOOL_SESSION_ID); + String type= WebUtil.readStrParam(request, CHART_TYPE); + + Long questionUid = WebUtil.readLongParam(request, SurveyConstants.ATTR_QUESTION_UID); + ISurveyService service = getSurveyService(); + //get question + SurveyQuestion question = service.getQuestion(questionUid); - private ActionForward listuser(ActionMapping mapping, ActionForm form, HttpServletRequest request, + //set all attribute to request for show + request.setAttribute( AttributeNames.PARAM_TOOL_SESSION_ID, sessionId); + request.setAttribute( CHART_TYPE, type); + request.setAttribute( ATTR_QUESTION, question); + + return mapping.findForward(SurveyConstants.SUCCESS); + } + + + + private ActionForward listAnswers(ActionMapping mapping, ActionForm form, HttpServletRequest request, HttpServletResponse response) { Long sessionId = WebUtil.readLongParam(request, AttributeNames.PARAM_TOOL_SESSION_ID); - Long itemUid = WebUtil.readLongParam(request, SurveyConstants.PARAM_RESOURCE_ITEM_UID); + Long questionUid = WebUtil.readLongParam(request, SurveyConstants.ATTR_QUESTION_UID); - //get user list by given item uid + //get user list ISurveyService service = getSurveyService(); -// List list = service.getUserListBySessionItem(sessionId, itemUid); - //set to request -// request.setAttribute(SurveyConstants.ATTR_USER_LIST, list); + SortedMap userAnswerMap = new TreeMap(new SurveyUserComparator()); +// get all users with their answers whatever they answer or not + List users = service.getSessionUsers(sessionId); + for (SurveyUser user : users) { + List questionAnswers = service.getQuestionAnswer(sessionId, user.getUid()); + for (SurveyQuestion questionAnswer : questionAnswers) { + if(questionUid.equals(questionAnswer.getUid())){ + userAnswerMap.put(user,questionAnswer); + break; + } + } + } + //set all attribute to request for show + request.setAttribute( ATTR_ANSWER_LIST, userAnswerMap); + return mapping.findForward(SurveyConstants.SUCCESS); } Fisheye: Tag 6a5d35ec57dde95eae93fb628d669af257d36949 refers to a dead (removed) revision in file `lams_tool_survey/web/pages/monitoring/charterror.jsp'. Fisheye: No comparison available. Pass `N' to diff? Index: lams_tool_survey/web/pages/monitoring/chartreport.jsp =================================================================== diff -u --- lams_tool_survey/web/pages/monitoring/chartreport.jsp (revision 0) +++ lams_tool_survey/web/pages/monitoring/chartreport.jsp (revision 6a5d35ec57dde95eae93fb628d669af257d36949) @@ -0,0 +1,57 @@ + + + +<%@ include file="/common/taglibs.jsp"%> +<%@ page import="org.lamsfoundation.lams.tool.survey.SurveyConstants"%> + + + <%@ include file="/common/header.jsp" %> + + +
+

+ +

+
+
+
+ + + + + + + + + + + + + + + + + + + + + + + +
+ <%= SurveyConstants.OPTION_SHORT_HEADER %>${status.count} + + ${option.description} +
+ +
+ ${toolSessionID}&questionUid=${question.uid}" + title=""> +
+
+ +
+ + + Index: lams_tool_survey/web/pages/monitoring/listanswers.jsp =================================================================== diff -u --- lams_tool_survey/web/pages/monitoring/listanswers.jsp (revision 0) +++ lams_tool_survey/web/pages/monitoring/listanswers.jsp (revision 6a5d35ec57dde95eae93fb628d669af257d36949) @@ -0,0 +1,110 @@ + + + +<%@ include file="/common/taglibs.jsp"%> + +<%@ page import="org.lamsfoundation.lams.tool.survey.SurveyConstants"%> + + + <%@ include file="/common/header.jsp" %> + + +
+

+ +

+
+
+
+ + + + + <%-- display question header --%> + + + + + + + + + + + + + + + + + + + + + + + + <%-- End first check --%> + + +
+ <%= SurveyConstants.OPTION_SHORT_HEADER %>${optStatus.count} + + ${option.description} +
+ +
+ + + + + + + + + + + <%-- End first check --%> + + <%-- User answer list --%> + + + + + + + + + + +
+ <%= SurveyConstants.OPTION_SHORT_HEADER %>${optStatus.count} + + +
${user.loginName} + + + + + + + + + "> + + + + + + "> + + +
+
+
+ +
+ + + Fisheye: Tag 6a5d35ec57dde95eae93fb628d669af257d36949 refers to a dead (removed) revision in file `lams_tool_survey/web/pages/monitoring/piechart.jsp'. Fisheye: No comparison available. Pass `N' to diff? Index: lams_tool_survey/web/pages/monitoring/statistic.jsp =================================================================== diff -u -r0020cbe23ed34775811ceab0779d065243444dcb -r6a5d35ec57dde95eae93fb628d669af257d36949 --- lams_tool_survey/web/pages/monitoring/statistic.jsp (.../statistic.jsp) (revision 0020cbe23ed34775811ceab0779d065243444dcb) +++ lams_tool_survey/web/pages/monitoring/statistic.jsp (.../statistic.jsp) (revision 6a5d35ec57dde95eae93fb628d669af257d36949) @@ -1,91 +1,4 @@ <%@ include file="/common/taglibs.jsp"%> - - - - -
- -
-
- - - - <%-- display group name on first row--%> - - - - - - - - - - - - - - - - - - - - - - - - - -
- ${item.sessionName} - - -
- - - - - - - -
-
- -
-
- - - - - - - - - - - - - - - - ${item.itemTitle} - - - ${item.username} - - - - - - - - ${item.viewNumber} - - - 0 - - -
Index: lams_tool_survey/web/pages/monitoring/summary.jsp =================================================================== diff -u -racfcd68cefd9d696f1b8ced611f7bedb30750024 -r6a5d35ec57dde95eae93fb628d669af257d36949 --- lams_tool_survey/web/pages/monitoring/summary.jsp (.../summary.jsp) (revision acfcd68cefd9d696f1b8ced611f7bedb30750024) +++ lams_tool_survey/web/pages/monitoring/summary.jsp (.../summary.jsp) (revision 6a5d35ec57dde95eae93fb628d669af257d36949) @@ -1,18 +1,18 @@ <%@ include file="/common/taglibs.jsp"%> +
- +
- - - + + @@ -23,50 +23,52 @@ - + <%-- display group name on first row--%> <%-- End group title display --%> - - + - + @@ -77,19 +79,27 @@ + + + + + + <%-- Reflection list --%> Fisheye: Tag 6a5d35ec57dde95eae93fb628d669af257d36949 refers to a dead (removed) revision in file `lams_tool_survey/web/pages/monitoring/userlist.jsp'. Fisheye: No comparison available. Pass `N' to diff?
${surveySession.sessionName} - - - - -
${question.shortTitle} - toolSessionID${surveySession.sessionId}&questionUid=${question.uid}')"> - + + toolSessionID=${surveySession.sessionId}&questionUid=${question.uid}')"> + ${question.shortTitle} - toolSessionID${surveySession.sessionId}&questionUid=${question.uid}')"> - - + <%-- Only show pie/bar chart when question is single/multiple choics type --%> + + toolSessionID=${surveySession.sessionId}&questionUid=${question.uid}')"> + + + toolSessionID=${surveySession.sessionId}&questionUid=${question.uid}')"> + + + +
${option.description} - + ${option.response} - ${status.index % 5} + ${status.index % 5 + 1} - ${option.responseCount} (${option.responseFormatStr}%) - + ${question.openResponseFormatStr} - ${(optSize + 1) % 5} + ${(optSize % 5) + 1} - ${question.openResponseCount} (${question.openResponseFormatStr}%)
+ ${question.openResponseCount} +