Sha256: d4e3286c2367055be072e14719fa6866fd1ebc16638738b1a61834b31272ec72

Contents?: true

Size: 627 Bytes

Versions: 12

Compression:

Stored size: 627 Bytes

Contents

<% @users.each_with_index do |(name, average, _), i| %>
<h3><%= name %> <small>(Average: <%= "%.1f" % average %>)</small></h3>
<div id="developer_<%= i %>" class="graph"></div>
<% end %>

<% content_for :javascripts do %>
<script type="text/javascript">
  $(function() {
    window.data = <%=raw @users.to_json %>;
    for(var i=0; i<data.length; i++) {
      new Houston.StackedBarGraph()
        .selector('#developer_' + i)
        .labels(['Completed', 'Missed'])
        .colors(['rgb(31, 180, 61)', 'rgb(228, 45, 45)'])
        .data(data[i][2])
        .range([0, 60])
        .render();
    }
  });
</script>
<% end %>

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
houston-core-0.6.3 app/views/reports/sprint.html.erb
houston-core-0.6.2 app/views/reports/sprint.html.erb
houston-core-0.6.1 app/views/reports/sprint.html.erb
houston-core-0.6.0 app/views/reports/sprint.html.erb
houston-core-0.5.6 app/views/reports/sprint.html.erb
houston-core-0.5.5 app/views/reports/sprint.html.erb
houston-core-0.5.4 app/views/reports/sprint.html.erb
houston-core-0.5.3 app/views/reports/sprint.html.erb
houston-core-0.5.2 app/views/reports/sprint.html.erb
houston-core-0.5.1 app/views/reports/sprint.html.erb
houston-core-0.5.0 app/views/reports/sprint.html.erb
houston-core-0.5.0.beta1 app/views/reports/sprint.html.erb