Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

Allowed the graph to show data even if all values are zero.

  • Loading branch information...
commit aff0047ba0c78bef3e15feb92e6bb763a64067e3 1 parent e1968ac
Aimee Daniells authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  lib/gruff/base.rb
2  lib/gruff/base.rb
@@ -451,7 +451,7 @@ def data(name, data_points=[], color=nil)
451 451 # TODO Doesn't work with stacked bar graphs
452 452 # Original: @maximum_value = larger_than_max?(data_point, index) ? max(data_point, index) : @maximum_value
453 453 @maximum_value = larger_than_max?(data_point) ? data_point : @maximum_value
454   - @has_data = true if @maximum_value > 0
  454 + @has_data = true if @maximum_value >= 0
455 455
456 456 @minimum_value = less_than_min?(data_point) ? data_point : @minimum_value
457 457 @has_data = true if @minimum_value < 0

0 comments on commit aff0047

Please sign in to comment.
Something went wrong with that request. Please try again.