lib/rubyvis/mark/bar.rb in rubyvis-0.1.4 vs lib/rubyvis/mark/bar.rb in rubyvis-0.1.5

- old
+ new

@@ -7,9 +7,10 @@ "bar" end @properties=Mark.properties.dup attr_accessor_dsl :width, :height, :line_width, [:stroke_style, lambda {|d| pv.color(d)}], [:fill_style, lambda {|d| pv.color(d)}] + def self.defaults a=Rubyvis.Colors.category20() Bar.new.extend(Mark.defaults).line_width(1.5).fill_style( lambda { a.scale(self.parent.index) })