Sha256: ff1117b3ce137731d226003d35153e53c9bd6aba917f2bf54109a127cbebc117

Contents?: true

Size: 271 Bytes

Versions: 35

Compression:

Stored size: 271 Bytes

Contents

module ChartJS

  class Background 

    def initialize(container)
      @container = container
    end
    
    def build(&block)
      instance_eval(&block)
      @container 
    end

    def color(value)
      @container['backgroundColor'] = value
    end

  end

end

Version data entries

35 entries across 5 versions & 1 rubygems

Version Path
chart_js-1.1.1 lib/chart_js/chart/bar_chart/background.rb
chart_js-1.1.1 lib/chart_js/chart/radar_chart/dataset/background.rb
chart_js-1.1.1 lib/chart_js/chart/radar_chart/background.rb
chart_js-1.1.1 lib/chart_js/chart/line_chart/dataset/background.rb
chart_js-1.1.1 lib/chart_js/chart/line_chart/background.rb
chart_js-1.1.1 lib/chart_js/chart/dataset/background.rb
chart_js-1.1.1 lib/chart_js/chart/bar_chart/dataset/background.rb
chart_js-1.1.0 lib/chart_js/chart/radar_chart/dataset/background.rb
chart_js-1.1.0 lib/chart_js/chart/radar_chart/background.rb
chart_js-1.1.0 lib/chart_js/chart/line_chart/dataset/background.rb
chart_js-1.1.0 lib/chart_js/chart/line_chart/background.rb
chart_js-1.1.0 lib/chart_js/chart/dataset/background.rb
chart_js-1.1.0 lib/chart_js/chart/bar_chart/dataset/background.rb
chart_js-1.1.0 lib/chart_js/chart/bar_chart/background.rb
chart_js-1.0.0 lib/chart_js/chart/bar_chart/background.rb
chart_js-1.0.0 lib/chart_js/chart/bar_chart/dataset/background.rb
chart_js-1.0.0 lib/chart_js/chart/dataset/background.rb
chart_js-1.0.0 lib/chart_js/chart/line_chart/background.rb
chart_js-1.0.0 lib/chart_js/chart/line_chart/dataset/background.rb
chart_js-1.0.0 lib/chart_js/chart/radar_chart/background.rb