Widget:WJG Sandbox Merge: Difference between revisions

Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 1,138: Line 1,138:
$(".navPaneButton").unbind('click');
$(".navPaneButton").unbind('click');
$(".navPaneButton").click(window.exam, questionReviewNavigation);
$(".navPaneButton").click(window.exam, questionReviewNavigation);
}
point_labels=[];
for (var j = 0; j < qdist.length; j+=1){
    point_labels[j]=j.toString();
}


point_labels=[];
for (var j = 0; j < qdist.length; j+=1){
    point_labels[j]=j.toString();
}


var simExamData = {
                labels : point_labels,
                datasets : [
{
fillColor : "rgba(220,220,220,0.5)",
strokeColor : "rgba(220,220,220,1)",
pointColor : "rgba(220,220,220,1)",
pointStrokeColor : "#fff",
data : qdist,
title: "Percent of test takers"
}
            ]
            }


var simExamData = {
var newopts = {
                labels : point_labels,
yAxisLabel : "Percent of test takers",
                datasets : [
yAxisFontFamily : "'Arial'",
{
yAxisFontSize : 16,
fillColor : "rgba(220,220,220,0.5)",
yAxisFontStyle : "normal",
strokeColor : "rgba(220,220,220,1)",
yAxisFontColor : "#666",
pointColor : "rgba(220,220,220,1)",
xAxisLabel : "Number of correct answers",
pointStrokeColor : "#fff",
data : qdist,
title: "Percent of test takers"
}
            ]
            }


var newopts = {
legend : false,
yAxisLabel : "Percent of test takers",
legendFontFamily : "'Arial'",
yAxisFontFamily : "'Arial'",
legendFontSize : 12,
yAxisFontSize : 16,
legendFontStyle : "normal",
yAxisFontStyle : "normal",
legendFontColor : "#666",
yAxisFontColor : "#666",
legendBlockSize : 15,
xAxisLabel : "Number of correct answers",
legendBorders : false,
legendBordersColor : "#666",


legend : false,
legendFontFamily : "'Arial'",
legendFontSize : 12,
legendFontStyle : "normal",
legendFontColor : "#666",
legendBlockSize : 15,
legendBorders : false,
legendBordersColor : "#666",


graphTitle : "Peer Performance",
graphTitleFontFamily : "'Arial'",
graphTitleFontSize : 24,
graphTitleFontStyle : "bold",
graphTitleFontColor : "#666",
}


graphTitle : "Peer Performance",
            // get line chart canvas
graphTitleFontFamily : "'Arial'",
            var simExams = document.getElementById('simExams').getContext('2d');
graphTitleFontSize : 24,
            // draw line chart
graphTitleFontStyle : "bold",
            new Chart(simExams).Line(simExamData,newopts);
graphTitleFontColor : "#666",
}
}


            // get line chart canvas
            var simExams = document.getElementById('simExams').getContext('2d');
            // draw line chart
            new Chart(simExams).Line(simExamData,newopts);
$(".navPaneButton").unbind('click');
$(".navPaneButton").click(window.exam, questionReviewNavigation);
}


function submitRating(ratingType, score, page) {
function submitRating(ratingType, score, page) {

Latest revision as of 02:08, 11 August 2014