mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-25 11:38:49 +01:00
21 lines
No EOL
1.1 KiB
Text
Executable file
21 lines
No EOL
1.1 KiB
Text
Executable file
&title=<%= t('stats.spread_of_running_actions_for_visible_contexts') %>,{font-size:16}&
|
|
&pie=60,#505050,{font-size: 12px; color: #404040;}&
|
|
&x_axis_steps=1& &y_ticks=5,10,5& &line=3,#87421F& &y_min=0& &y_max=20&
|
|
&values=<%
|
|
0.upto @actions_per_context.size()-2 do | i |
|
|
%><%=@actions_per_context[i]['total'].to_i*100/@sum%>,<%
|
|
end
|
|
-%><%=@actions_per_context[@actions_per_context.size()-1]['total'].to_i*100/@sum%>&
|
|
&pie_labels=<%
|
|
0.upto @actions_per_context.size()-2 do | i |
|
|
%><%=truncate(@actions_per_context[i]['name'], :length => @truncate_chars, :omission => '...')%>,<%
|
|
end
|
|
-%><%=truncate(@actions_per_context[@actions_per_context.size()-1]['name'], :length => @truncate_chars, :omission => '...') %>&
|
|
&links=<%
|
|
0.upto @actions_per_context.size()-2 do | i |
|
|
%><%=url_for :controller => "contexts", :action => "show", :id=>@actions_per_context[i]['id']%>,<%
|
|
end
|
|
-%><%=url_for :controller => "contexts", :action => "show", :id=>@actions_per_context[@actions_per_context.size()-1]['id']%>&
|
|
&colours=#d01f3c,#356aa0,#C79810,#c61fd0,#1fc6d0,#1fd076,#72d01f,#c6d01f,#d0941f,#40941f&
|
|
&tool_tip=#x_label#: #val#%25&
|
|
&x_label_style=9,,2,1& |