mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-24 19:20:13 +01:00
30 lines
1.2 KiB
Text
30 lines
1.2 KiB
Text
<%-
|
|
url_labels = Array.new(@count){ |i| url_for(:controller => 'stats', :action => 'show_selected_actions_from_chart', :index => i, :id=> "art") }
|
|
url_labels[@count]=url_for(:controller => 'stats', :action => 'show_selected_actions_from_chart', :index => @count, :id=> "art_end")
|
|
|
|
time_labels = Array.new(@count){ |i| "#{i}-#{i+1}" }
|
|
time_labels[0] = "< 1"
|
|
time_labels[@count] = "> #{@count}"
|
|
-%>
|
|
&title=<%= t('stats.running_time_all') %>,{font-size:16},&
|
|
&y_legend=<%= t('stats.running_time_all_legend.actions') %>,10,0x736AFF&
|
|
&y2_legend=<%= t('stats.running_time_all_legend.percentage') %>,10,0xFF0000&
|
|
&x_legend=<%= t('stats.running_time_all_legend.running_time') %>,11,0x736AFF&
|
|
&y_ticks=5,10,5&
|
|
&filled_bar=50,0x9933CC,0x8010A0&
|
|
&values=<%= @actions_running_time_array.join(",") -%>&
|
|
&links=<%= url_labels.join(",") %>&
|
|
&line_2=2,0xFF0000&
|
|
&values_2=<%= @cum_percent_done.join(",") %>&
|
|
&x_labels=<%= time_labels.join(",") %> &
|
|
&y_min=0&
|
|
<%
|
|
# add one to @max for people who have no actions completed yet.
|
|
# OpenFlashChart cannot handle y_max=0
|
|
-%>
|
|
&y_max=<%=1+@max_actions+@max_actions/10-%>&
|
|
&x_label_style=9,,2,2&
|
|
&show_y2=true&
|
|
&y2_lines=2&
|
|
&y2_min=0&
|
|
&y2_max=100&
|