tracks/app/views/stats/pie_chart_data.html.erb
Katrina Owen 6e2f1a8e5f De-dupe pie chart view
Pull logic into the controller from the view. There were only a couple
of tiny differences between the running actions and the total actions
view, so I added a couple of instance variables and then called the same
template twice.
2013-03-18 18:56:41 -06:00

9 lines
441 B
Text
Executable file

&title=<%= @title %>,{font-size:16}&
&pie=<%= @alpha %>,#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=<%= @pie_slices.join(",") %>&
&pie_labels=<%= @pie_labels.join(",") %>&
&links=<%= @pie_links.join(",") %>&
&colours=#d01f3c,#356aa0,#C79810,#c61fd0,#1fc6d0,#1fd076,#72d01f,#c6d01f,#d0941f,#40941f&
&tool_tip=#x_label#: #val#%25&
&x_label_style=9,,2,1&