bsag / tracks

Tracks is a GTD(TM) web application, built with Ruby on Rails

This URL has Read+Write access

tracks / app / views / stats / actions_done_lastyears_data.html.erb
44f86468 » lrbalt 2008-07-04 adds chart to see all actio... 1 &title=Actions in the last years,{font-size:16},&
2 &y_legend=Number of actions,12,0x736AFF&
3 &x_legend=Months ago,12,0x736AFF&
4 &y_ticks=5,10,5&
5 &filled_bar=50,0x9933CC,0x8010A0,Created,9&
6 &filled_bar_2=50,0x0066CC,0x0066CC,Completed,9&
7 &line_3=2,0x00FF00, Avg Created, 9&
8 &line_4=2,0xFF0000, Avg Completed, 9&
9 &line_5=2,0x007700, 3 Month Avg Created, 9&
10 &line_6=2,0xAA0000, 3 Month Avg Completed, 9&
11 &line_7=1,0xAA0000&
12 &line_8=1,0x007700&
13 &values=<% 0.upto @month_count-1 do |i| -%><%= @actions_created_last_months_hash[i]%>,<% end -%><%= @actions_created_last_months_hash[@month_count]%>&
14 &values_2=<% 0.upto @month_count-1 do |i| -%><%= @actions_done_last_months_hash[i]%>,<% end -%><%= @actions_done_last_months_hash[@month_count]%>&
15 &values_3=<%0.upto @month_count-1 do |i| -%><%=@sum_actions_created_last_months/@month_count-%>,<%end-%><%=@sum_actions_created_last_months/@month_count-%>&
16 &values_4=<%0.upto @month_count-1 do |i| -%><%=@sum_actions_done_last_months/@month_count-%>,<%end-%><%=@sum_actions_done_last_months/@month_count-%>&
17 &values_5=<%0.upto @month_count-1 do |i| -%><%=@actions_created_avg_last_months_hash[i]-%>,<%end-%><%=@actions_created_avg_last_months_hash[@month_count]-%>&
18 &values_6=<%0.upto @month_count-1 do |i| -%><%=@actions_done_avg_last_months_hash[i]-%>,<%end-%><%=@actions_done_avg_last_months_hash[@month_count]-%>&
19 &values_7=<%=@interpolated_actions_created_this_month%>,<%=@actions_done_avg_last_months_hash[1]%>&
20 &values_8=<%=@interpolated_actions_done_this_month%>,<%=@actions_created_avg_last_months_hash[1]%>&
21 &x_labels=<%0.upto @month_count-1 do |i| -%>
22 <%= Date::MONTHNAMES[ (Time.now.mon - i -1 ) % 12 + 1 ] + " " + (Time.now - i.months).year.to_s -%>,
23 <% end -%>
24 <%= Date::MONTHNAMES[(Time.now.mon - @month_count -1 ) % 12 + 1] + " " + (Time.now - @month_count.months).year.to_s -%>&
25 &y_min=0&
26 <% # add one to @max for people who have no actions completed yet.
27 # OpenFlashChart cannot handle y_max=0 -%>
28 &y_max=<%=@max+@max/10+1-%>&
29 &x_label_style=9,,2,&