2 # Handles requests for sparkline graphs.
4 # You shouldn't need to edit or extend this, but you can read
5 # the documentation for SparklinesHelper to see how to call it from
10 # Geoffrey Grosenbach[mailto:boss@topfunky.com]
14 class SparklinesController < ApplicationController
18 # Make array from comma-delimited list of data values
20 params['results'].split(',').each do |s|
24 send_data( Sparklines.plot( ary, params ),
25 :disposition => 'inline',
27 :filename => "spark_#{params[:type]}.png" )