lib/rubyvis/mark/dot.rb in rubyvis-0.2.2 vs lib/rubyvis/mark/dot.rb in rubyvis-0.3.0

- old
+ new

@@ -77,10 +77,10 @@ attr_accessor_dsl :shape, :shape_angle, :shape_radius, :shape_size, :line_width, [:stroke_style, lambda {|d| Rubyvis.color(d)}], [:fill_style, lambda {|d| Rubyvis.color(d)}] # Default properties for dots. By default, there is no fill and the stroke # style is a categorical color. The default shape is "circle" with radius 4.5. def self.defaults() a=Rubyvis::Colors.category10 - Dot.new().extend(Mark.defaults).shape("circle"). line_width(1.5). stroke_style(lambda {a.scale(self.parent.index)}) + Dot.new().mark_extend(Mark.defaults).shape("circle"). line_width(1.5). stroke_style(lambda {a.scale(self.parent.index)}) end # Constructs a new dot anchor with default properties. Dots support five # different anchors:<ul> # # <li>top