Bar chart

This commit is contained in:
johnmgeiger
2016-03-28 18:25:06 +02:00
parent b530ea47d9
commit b9ec879531
450 changed files with 83362 additions and 99 deletions

View File

@@ -1,3 +1,4 @@
script src="http://labratrevenge.com/d3-tip/javascripts/d3.tip.v0.6.3.js"
h1 = @exercise
= row(label: '.participants', value: @exercise.users.distinct.count)
@@ -21,8 +22,10 @@ h1 = @exercise
hr
.hidden#data data-working-time=ActiveSupport::JSON.encode(working_time_array)
div#chart_1
.graph-functions
hr
div#chart_2
hr
.graph-functions
.table-responsive
table.table.table-striped.sortable
thead
@@ -37,4 +40,4 @@ h1 = @exercise
td = link_to_if symbol==:external_users, label, {controller: "exercises", action: "statistics", external_user_id: user.id, id: @exercise.id}
td = us['maximum_score'] or 0
td = us['runs']
td = @exercise.average_working_time_for(user.id) or 0
td = @exercise.average_working_time_for(user.id) or 0