&title=<%= t('stats.actions_30days_title') %>,{font-size:16},& &y_legend=<%= t('stats.legend.number_of_actions') %>,12,0x736AFF& &x_legend=<%= t('stats.legend.number_of_days') %>,12,0x736AFF& &y_ticks=5,10,5& &filled_bar=50,0x9933CC,0x8010A0,<%= t('stats.labels.created') %>,9& &filled_bar_2=50,0x0066CC,0x0066CC,<%= t('stats.labels.completed') %>,9& &line_3=3,0x00FF00, <%= t('stats.labels.avg_created') %>, 9& &line_4=3,0xFF0000, <%= t('stats.labels.avg_completed') %>, 9& &values= <% 0.upto 29 do |i| -%> <%= @actions_created_last30days_hash[i]%>, <% end -%><%= @actions_created_last30days_hash[30]%>& &values_2= <% 0.upto 29 do |i| -%> <%= @actions_done_last30days_hash[i]%>, <% end -%><%= @actions_done_last30days_hash[30]%>& &values_3= <%0.upto 29 do |i| -%> <%=@sum_actions_created_last30days/30.0-%>, <%end-%> <%=@sum_actions_created_last30days/30.0-%>& &values_4= <%0.upto 29 do |i| -%> <%=@sum_actions_done_last30days/30.0-%>, <%end-%> <%=@sum_actions_done_last30days/30.0-%>& &x_labels= <%0.upto 29 do |i| seconds = i * 24 * 60 * 60 delta = Time.now-seconds -%> <%= delta.strftime("%a %d-%m") -%>, <% end seconds = 29*25*60*60 delta = Time.now-seconds-%> <%= delta.strftime("%a %d-%m") -%>& &y_min=0& <% # max + 10% for some extra space at the top # add one to @max for people who have no actions completed yet. # OpenFlashChart cannot handle y_max=0 -%> &y_max=<%=@max+@max/10+1 -%>& &x_label_style=9,,2,3&