Permalink
Browse files

* Fixed line graphs after bar label changes.

  • Loading branch information...
1 parent ca3ccea commit 8be4882d091aa32c39e9a3c00ac64fc3f8754370 @donv donv committed Dec 7, 2012
Showing with 5 additions and 1 deletion.
  1. +5 −1 lib/gruff/base.rb
View
@@ -487,7 +487,11 @@ def normalize(force=false)
norm_data_points << ((data_point.to_f - @minimum_value.to_f) / @spread)
end
end
- @norm_data << [data_row[DATA_LABEL_INDEX], norm_data_points, data_row[DATA_COLOR_INDEX], data_row[DATA_VALUES_INDEX]]
+ if @show_labels_for_bar_values
+ @norm_data << [data_row[DATA_LABEL_INDEX], norm_data_points, data_row[DATA_COLOR_INDEX], data_row[DATA_VALUES_INDEX]]
+ else
+ @norm_data << [data_row[DATA_LABEL_INDEX], norm_data_points, data_row[DATA_COLOR_INDEX]]
+ end
end
end
end

0 comments on commit 8be4882

Please sign in to comment.