Class: RailsCharts::CustomChart

Inherits:
BaseChart show all
Defined in:
lib/rails_charts/custom_chart.rb

Constant Summary

Constants inherited from BaseChart

BaseChart::CHART_JS_PATTERN

Instance Attribute Summary

Attributes inherited from BaseChart

#chart_id, #container_id, #data, #debug, #defaults, #height, #klass, #locale, #options, #other_options, #renderer, #style, #theme, #vertical, #width

Instance Method Summary collapse

Methods inherited from BaseChart

#axises, #js_code, #option, #x_axis, #y_axis

Constructor Details

#initialize(data, options = {}) ⇒ CustomChart

Returns a new instance of CustomChart.



4
5
6
7
# File 'lib/rails_charts/custom_chart.rb', line 4

def initialize(data, options = {})
  super([], options)
  @options = options
end

Instance Method Details

#build_optionsObject



9
10
11
# File 'lib/rails_charts/custom_chart.rb', line 9

def build_options
  options
end