Skip to content

Commit

Permalink
put in an extra step, so that data points don't appear after the end …
Browse files Browse the repository at this point in the history
…of the chart
  • Loading branch information
Jon Adams committed Dec 28, 2020
1 parent 85ec60b commit 6343629
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/SVG/Graph/TimeSeries.rb
Original file line number Diff line number Diff line change
Expand Up @@ -249,12 +249,12 @@ def get_x_values
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, 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, @x_scale_division ) {|v| rv << v}
return rv
end # get_x_values

Expand Down

0 comments on commit 6343629

Please sign in to comment.