lib/db_graph/line.rb in grosser-db_graph-0.1.3 vs lib/db_graph/line.rb in grosser-db_graph-0.1.4
- old
+ new
@@ -35,9 +35,10 @@
for name, hash in data
line.data(name, self.class.filled_and_sorted_values(hash, x_values), random_color)
end
line.axis :x, :labels => x_labels
line.axis :y, :labels => y_labels
+ line.show_legend = (@options[:show_legend]!=false)
end.to_url
end
def x_labels
case @style
\ No newline at end of file