lib/lilygraph.rb in lilygraph-0.5.7 vs lib/lilygraph.rb in lilygraph-0.5.8
- old
+ new
@@ -20,11 +20,11 @@
:indent => 2,
:padding => 14,
:legend => :right,
:bar_text => :number,
:type => :bar,
- :padding => false,
+ :flush => false,
:viewbox => {
:width => 800,
:height => 600
},
:margin => { :top => 50, :left => 50, :right => 50, :bottom => 100 }
@@ -298,10 +298,10 @@
def division
[(10 ** Math.log10(data_max).floor), 1].max
end
def max
- if @options[:padding]
+ if @options[:flush]
temp_max = (data_max + [division / 10, 1].max)
else
temp_max = data_max
end