end
else #one dimensional array, just pass it in
@graph.data( options.fetch(:data_name, "Data"), options[:data] )
end
else #one dimensional array, just pass it in
@graph.data( options.fetch(:data_name, "Data"), options[:data] )
@election = Election.find(params[:id])
data, labels, scale = get_votes_per_interval_data(@election)
@election = Election.find(params[:id])
data, labels, scale = get_votes_per_interval_data(@election)
graph = GruffGraff.new( :graph_type => Gruff::Line,
:data_name => @election.name,
:data => data,
graph = GruffGraff.new( :graph_type => Gruff::Line,
:data_name => @election.name,
:data => data,