Sha256: 01a9dfcab3116853ac89f1af96ffdd0765bde0656f4e97a969f253efda23c08b

Contents?: true

Size: 375 Bytes

Versions: 2

Compression:

Stored size: 375 Bytes

Contents

module Highcharts
  class Legend < Base

    attr_accessor :layout, :align, :verticalAlign, :x, :y, :borderWidth

    def to_s
      rendered_options = render_options(:strings => 'layout align verticalAlign', :objects => 'x y borderWidth')
      return nil if rendered_options.length == 0
      "legend: {" +
        rendered_options.join(',') +
      "}"
    end

  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
highcharts-js-rails-0.0.3 lib/highcharts/legend.rb
highcharts-js-rails-0.0.2 lib/highcharts/legend.rb