Skip to content

Commit

Permalink
bug fix: charts with 3 labels on the x-axis should use google's defau…
Browse files Browse the repository at this point in the history
…lt step
  • Loading branch information
markus committed Jun 8, 2011
1 parent bf256ab commit c305823
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/gchart.rb
Expand Up @@ -493,7 +493,7 @@ def set_axis_range
'chxr=' + set.enum_for(:each_with_index).map do |axis_range, index|
next nil if axis_range.nil? # ignore this axis
min, max, step = axis_range
if axis_range.size > 3 || step && max && step > max # this is a full series
if axis_range.size >= 3 || step && max && step > max # this is a full series
max = axis_range.compact.max
step = nil
end
Expand Down

0 comments on commit c305823

Please sign in to comment.