2007-09-13 03:21:37 +00:00
|
|
|
&title=Spread of running actions for visible contexts,{font-size:16}&
|
2008-02-13 14:47:11 +00:00
|
|
|
&pie=60,#505050,{font-size: 12px; color: #404040;}&
|
2007-09-13 03:21:37 +00:00
|
|
|
&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 |
|
2008-11-30 20:16:57 +01:00
|
|
|
%><%=truncate(@actions_per_context[i]['name'], :length => @truncate_chars, :omission => '...')%>,<%
|
2007-09-13 03:21:37 +00:00
|
|
|
end
|
2009-03-16 14:59:24 +01:00
|
|
|
-%><%=truncate(@actions_per_context[@actions_per_context.size()-1]['name'], :length => @truncate_chars, :omission => '...') %>&
|
2007-12-16 21:54:37 +00:00
|
|
|
&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']%>&
|
2007-12-02 13:10:24 +00:00
|
|
|
&colours=#d01f3c,#356aa0,#C79810,#c61fd0,#1fc6d0,#1fd076,#72d01f,#c6d01f,#d0941f,#40941f&
|
2007-09-13 03:21:37 +00:00
|
|
|
&tool_tip=#x_label#: #val#%25&
|
|
|
|
|
&x_label_style=9,,2,1&
|