Sha256: 77728fd6e7a071f2d0738483360755e58aacd907fc7fe0c383c04138a0703600

Contents?: true

Size: 1.16 KB

Versions: 8

Compression:

Stored size: 1.16 KB

Contents

module Saulabs

  module Reportable

    # The Reportable configuration module defines colors, sizes etc. for the different report tag renderers.
    #
    module Config

      mattr_accessor :google_options

      @@google_options = {
        :width      => 300,
        :height     => 34,
        :line_color => '0077cc',
        :fill_color => 'e6f2fa',
        :labels     => []
      }

      mattr_accessor :raphael_options

      @@raphael_options = {
        :width            => 300,
        :height           => 100,
        :dom_id           => nil,
        :format           => 'to_i',
        :shade            => true,
        :hover_line_color => '2f69bf',
        :hover_fill_color => '2f69bf'
      }

      mattr_accessor :flot_options

      @@flot_options = {
        :width  => 300,
        :height => 100,
        :dom_id => nil,
        :colors => ['rgba(6,122,205,1)'],
        :grid   => { 
          :show => false
        },
        :series => {
          :lines      => {
            :fill      => true,
            :fillColor => 'rgba(6,122,205,.5)',
            :lineWidth => 2
          },
          :shadowSize => 0
        }
      }

    end

  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
reportable-1.4.2 lib/saulabs/reportable/config.rb
reportable-1.4.1 lib/saulabs/reportable/config.rb
reportable-1.4.0 lib/saulabs/reportable/config.rb
reportable-1.3.1 lib/saulabs/reportable/config.rb
reportable-1.3.0 lib/saulabs/reportable/config.rb
reportable-1.2.0 lib/saulabs/reportable/config.rb
reportable-1.1.2 lib/saulabs/reportable/config.rb
reportable-1.1.0 lib/saulabs/reportable/config.rb