tracks/app/views/stats/actions_day_of_week_30days_data.html.erb
2008-05-24 15:57:18 +01:00

23 lines
No EOL
747 B
Text
Executable file

&title=Day of week (past 30 days),{font-size:16},&
&y_legend=Number of actions,12,0x736AFF&
&x_legend=Day of week,12,0x736AFF&
&y_ticks=5,10,5&
&filled_bar=50,0x9933CC,0x8010A0,Created,8&
&filled_bar_2=50,0x0066CC,0x0066CC,Completed,8&
&values=<%
0.upto 5 do |i| -%>
<%=@actions_creation_day_array[i] -%>,
<% end -%><%=@actions_creation_day_array[6]%>&
&values_2=<%
0.upto 5 do |i| -%>
<%=@actions_completion_day_array[i] -%>,
<% end -%><%=@actions_completion_day_array[6]%>&
&x_labels= <%
0.upto 5 do |i| -%>
<%=Date::DAYNAMES[i] -%>,
<% end -%><%=Date::DAYNAMES[6]%>&
&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,,2,1&