JumpstartLab/tracks

View on GitHub
app/views/stats/actions_time_of_day_30days_data.html.erb

Summary

Maintainability
Test Coverage
&title=<%= t('stats.tod30') %>,{font-size:16},&
&y_legend=<%= t('stats.tod30_legend.number_of_actions') %>,12,0x736AFF&
&x_legend=<%= t('stats.tod30_legend.time_of_day') %>,12,0x736AFF&
&y_ticks=5,10,5&
&filled_bar=50,0x9933CC,0x8010A0,<%= t('stats.labels.created') %>,8&
&filled_bar_2=50,0x0066CC,0x0066CC,<%= t('stats.labels.completed') %>,8&
&values=<% 
0.upto 22 do |i| -%>
  <%=@actions_creation_hour_array[i] -%>,
<% end -%><%=@actions_creation_hour_array[23]%>&
&values_2=<% 
0.upto 22 do |i| -%>
  <%=@actions_completion_hour_array[i] -%>,
<% end -%><%=@actions_completion_hour_array[23]%>&
&x_labels= <% 
0.upto 22 do |i| -%>
  <%=i-%>,
<% end -%>23&
&y_min=0&
<% # add one to @max for people who have no actions completed yet. 
   # OpenFlashChart cannot handle y_max=0 -%>
&y_max=<%=@max+1 -%>&
&x_label_style=9,,1,1&