lib/sparklines.rb in sparklines-0.2.6 vs lib/sparklines.rb in sparklines-0.2.7
- old
+ new
@@ -90,11 +90,11 @@
Licensed under the MIT license.
=end
module Sparklines
- VERSION = '0.2.6'
+ VERSION = '0.2.7'
# Does the actually plotting of the graph. Calls the appropriate function based on the :type value passed. Defaults to 'smooth.'
def Sparklines.plot(results=[], options={})
defaults = { :type => 'smooth',
:height => 14,
@@ -451,10 +451,10 @@
height = options[:height].to_f
upper = options[:upper].to_i
below_color = options[:below_color]
above_color = options[:above_color]
- img = Magick::Image.new((results.size) * step + 1, height) {
+ img = Magick::Image.new((results.size) * step + 2, height) {
self.background_color = options[:background_color]
}
img.format = "PNG"
draw = Magick::Draw.new