From b1f8da8e076338fda70f5b096261536d2038746a Mon Sep 17 00:00:00 2001 From: Matt Diamond Date: Fri, 1 Apr 2016 13:45:05 -0400 Subject: [PATCH] fixing range bug --- lib/gchart.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/gchart.rb b/lib/gchart.rb index 8b61268..cfb3953 100644 --- a/lib/gchart.rb +++ b/lib/gchart.rb @@ -504,7 +504,7 @@ def set_axis_range # a passed axis_range should look like: # [[10,100]] or [[10,100,4]] or [[10,100], [20,300]] # in the second example, 4 is the interval - set = @calculated_axis_range ? datasets : axis_range || datasets + set = @calculated_axis_range ? axis_range : datasets || datasets return unless set && set.respond_to?(:each) && set.find {|o| o}.respond_to?(:each)