Sha256: 9b1cdbb16ddb949112820eb41fc1f5d2820bd27d1fe81f63c4fe21dec2c029fd
Contents?: true
Size: 477 Bytes
Versions: 1
Compression:
Stored size: 477 Bytes
Contents
module Rubyvis def self.Bar Rubyvis::Bar end class Bar < Mark def type "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) }) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubyvis-0.1.5 | lib/rubyvis/mark/bar.rb |