Widget:WJG UserExamQuery: Difference between revisions
Jump to navigation
Jump to search
No edit summary |
No edit summary |
||
Line 102: | Line 102: | ||
} | } | ||
var plotNewGraph = function(){ | |||
console.log('Now plotting a graph of the user test information'); | |||
$("tr:odd").addClass("odd"); | |||
$("tr:not(.odd)").hide(); | |||
$("tr:first-child").show(); | |||
$("tr.odd").click(function(){ | |||
$(this).next("tr").toggle(); | |||
$(this).find(".arrow").toggleClass("up"); | |||
}); | |||
} | |||
var runQuery= function() { | var runQuery= function() { | ||
Line 193: | Line 207: | ||
<!-- line chart canvas element --> | <!-- line chart canvas element --> | ||
<canvas id="buyers" width="600" height="400"></canvas> | <canvas id="buyers" width="600" height="400"></canvas> | ||
<canvas id="newGraph" width="600" height="400"></canvas> | |||
<script> | <script> | ||
// line chart data | // line chart data |