Permalink
Browse files

'attr_accessor :bar_spacing' was missing from SideBar, StackedBar and

SideStackedBar.
  • Loading branch information...
jcoglan committed Aug 23, 2009
1 parent 084063f commit 954d2f171ba0675c42cf5abf473f88ba07b4c540
Showing with 9 additions and 0 deletions.
  1. +3 −0 lib/gruff/side_bar.rb
  2. +3 −0 lib/gruff/side_stacked_bar.rb
  3. +3 −0 lib/gruff/stacked_bar.rb
View
@@ -5,6 +5,9 @@
class Gruff::SideBar < Gruff::Base
+ # Spacing factor applied between bars
+ attr_accessor :bar_spacing
+
def draw
@has_left_labels = true
super
@@ -11,6 +11,9 @@
class Gruff::SideStackedBar < Gruff::SideBar
include StackedMixin
+ # Spacing factor applied between bars
+ attr_accessor :bar_spacing
+
def draw
@has_left_labels = true
get_maximum_by_stack
View
@@ -5,6 +5,9 @@
class Gruff::StackedBar < Gruff::Base
include StackedMixin
+ # Spacing factor applied between bars
+ attr_accessor :bar_spacing
+
# Draws a bar graph, but multiple sets are stacked on top of each other.
def draw
get_maximum_by_stack

0 comments on commit 954d2f1

Please sign in to comment.