Module: ClientperfHelper
- Defined in:
- lib/clientperf_helper.rb
Instance Method Summary collapse
Instance Method Details
#chart_for(data) ⇒ Object
2 3 4 5 6 7 8 |
# File 'lib/clientperf_helper.rb', line 2 def chart_for(data) if encoded = chart_data(data) image_tag("http://chart.apis.google.com/chart?cht=ls&chs=300x100&chm=B,e6f2fa,0,0,0|R,000000,0,0.998,1.0&chco=0f7fcf&chxt=r&chd=s:#{encoded}") else content_tag('p', "no data for this chart") end end |