lib/SVG/Graph/TimeSeries.rb in svg-graph-2.2.1 vs lib/SVG/Graph/TimeSeries.rb in svg-graph-2.2.2
- old
+ new
@@ -58,11 +58,11 @@
#
# Produces a graph of temporal scalar data.
#
# = Examples
#
- # http://www.germane-software/repositories/public/SVG/test/timeseries.rb
+ # https://github.com/lumean/svg-graph2/blob/master/examples/timeseries.rb
#
# = Notes
#
# The default stylesheet handles upto 10 data sets, if you
# use more you must create your own stylesheet and add the
@@ -247,15 +247,15 @@
step = 60 * amount
when "second"
step = amount
end
# only do this if division_units is not year or month. Those are done already above in the cases.
- min.step( max, step ) {|v| rv << v} if step
+ min.step( max + (step/10), step ) {|v| rv << v} if step
@x_scale_division = step if step
return rv
end
end
- min.step( max , @x_scale_division ) {|v| rv << v}
+ min.step( max + (@x_scale_division/10), @x_scale_division ) {|v| rv << v}
return rv
end # get_x_values
end # class TimeSeries
end # module Graph