<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -3,6 +3,7 @@
 * Support disabling last point when label is shown [Justin Love]
 * Handle missing data (nil) values in area, bar, discrete, smooth [Justin Love]
 * Extract method: normalize [Justin Love]
+* Support :min and :max options to set graph scale [Justin Love]
 
 == 0.5.2
 </diff>
      <filename>History.txt</filename>
    </modified>
    <modified>
      <diff>@@ -104,6 +104,8 @@ class Sparklines
         :last_color       =&gt; 'red',
         :std_dev_color    =&gt; '#efefef',
 
+        :min              =&gt; nil,
+        :max              =&gt; nil,
         :has_min          =&gt; false,
         :has_max          =&gt; false,
         :has_last         =&gt; nil,
@@ -630,12 +632,12 @@ class Sparklines
   def normalize_data
     case @options[:type].to_s
     when 'bar'
-      @minimum_value = 0.0
+      @minimum_value = @options[:min] || 0.0
     else
-      @minimum_value = @data.compact.min
+      @minimum_value = @options[:min] || @data.compact.min
     end
 
-    @maximum_value = @data.compact.max
+    @maximum_value = @options[:max] || @data.compact.max
 
     case @options[:type].to_s
     when 'pie'</diff>
      <filename>lib/sparklines.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>06849a2bbfe32ac07df4ccd268910674a9df4b74</id>
    </parent>
  </parents>
  <author>
    <name>Justin Love</name>
    <email>justin.love@cesgames.com</email>
  </author>
  <url>http://github.com/topfunky/sparklines/commit/aacda2612fb20a32f23323f9b49bb598e06e7fca</url>
  <id>aacda2612fb20a32f23323f9b49bb598e06e7fca</id>
  <committed-date>2009-02-16T11:50:29-08:00</committed-date>
  <authored-date>2009-02-16T11:50:29-08:00</authored-date>
  <message>Support :min and :max options to set graph scale.</message>
  <tree>df3a5d8c7b093cc5b3eb63ee6cb62ef5f3b4a2f1</tree>
  <committer>
    <name>Justin Love</name>
    <email>justin.love@cesgames.com</email>
  </committer>
</commit>
