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