Sha256: e1ed3544cf75df801b4e5c403c5b33f20808c722896930f12b6c33a64cdb1d1c
Contents?: true
Size: 553 Bytes
Versions: 1
Compression:
Stored size: 553 Bytes
Contents
module Rubyvis def self.Label Rubyvis::Label end class Label < Mark @properties=Mark.properties.dup attr_accessor_dsl :text, :font, :text_angle, [:text_style, lambda {|d| pv.color(d)}], :text_align, :text_baseline, :text_margin, :text_decoration, :text_shadow def type 'label' end def self.defaults Label.new.extend(Mark.defaults).events('none').text(lambda{|x| x}).font("10px sans-serif").text_angle(0).text_style(pv.color('black')).text_align('left').text_baseline('bottom').text_margin(3) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rubyvis-0.1.3 | lib/rubyvis/mark/label.rb |