lib/lilygraph.rb in lilygraph-0.5.5 vs lib/lilygraph.rb in lilygraph-0.5.6

- old
+ new

@@ -287,12 +287,12 @@ end private def data_max - @data.map do |num| - num.respond_to?(:max) ? num.max : num - end.max || 0 + [@data.map do |num| + num.respond_to?(:max) ? num.max : num + end.max || 1, 1].max end def division [(10 ** Math.log10(data_max).floor), 1].max end