lib/highcharts/legend.rb in highcharts-js-rails-0.0.3 vs lib/highcharts/legend.rb in highcharts-js-rails-0.1.0
- old
+ new
@@ -1,15 +1,11 @@
-module Highcharts
+class 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(',') +
- "}"
+ def initialize(opts = {})
+ @default = :enabled
+ @skip_quotation = :labelFormatter
+ super
end
end
-end
+end
\ No newline at end of file