class ApexCharts::Charts::SyncingCharts
Public Class Methods
new(outer_self, options={}, &block)
click to toggle source
# File lib/apex_charts/charts/syncing_charts.rb, line 5 def initialize(outer_self, options={}, &block) @outer_self = outer_self @html = '' build_instance_variables @options = options @options[:group] ||= apexcharts_group instance_eval &block @options[:annotations] = @annotations if @annotations end
Public Instance Methods
area_chart(data, options={}, &block)
click to toggle source
# File lib/apex_charts/charts/syncing_charts.rb, line 24 def area_chart(data, options={}, &block) options[:id] = apexcharts_id outer_self = eval('self', block.binding, __FILE__, __LINE__) if block_given? @html += AreaChart.new(outer_self, data, @options.merge(options), &block).render end
bar_chart(data, options={}, &block)
click to toggle source
# File lib/apex_charts/charts/syncing_charts.rb, line 31 def bar_chart(data, options={}, &block) options[:id] = apexcharts_id outer_self = eval('self', block.binding, __FILE__, __LINE__) if block_given? @html += BarChart.new(outer_self, data, @options.merge(options), &block).render end
column_chart(data, options={}, &block)
click to toggle source
# File lib/apex_charts/charts/syncing_charts.rb, line 38 def column_chart(data, options={}, &block) options[:id] = apexcharts_id outer_self = eval('self', block.binding, __FILE__, __LINE__) if block_given? @html += ColumnChart.new(outer_self, data, @options.merge(options), &block).render end
line_chart(data, options={}, &block)
click to toggle source
# File lib/apex_charts/charts/syncing_charts.rb, line 17 def line_chart(data, options={}, &block) options[:id] = apexcharts_id outer_self = eval('self', block.binding, __FILE__, __LINE__) if block_given? @html += LineChart.new(outer_self, data, @options.merge(options), &block).render end
method_missing(method, *args, &block)
click to toggle source
Calls superclass method
# File lib/apex_charts/charts/syncing_charts.rb, line 64 def method_missing(method, *args, &block) if @outer_self.respond_to?(method, true) @outer_self.send method, *args, &block else super end end
mixed_charts(options={}, &block)
click to toggle source
# File lib/apex_charts/charts/syncing_charts.rb, line 52 def mixed_charts(options={}, &block) options[:id] = apexcharts_id outer_self = eval('self', block.binding, __FILE__, __LINE__) @html += MixedCharts.new(outer_self, @options.merge(options), &block).render end
Also aliased as: combo_charts
render()
click to toggle source
# File lib/apex_charts/charts/syncing_charts.rb, line 60 def render @html end
respond_to_missing?(method, *args)
click to toggle source
Calls superclass method
# File lib/apex_charts/charts/syncing_charts.rb, line 72 def respond_to_missing?(method, *args) @outer_self.respond_to? method, *args || super end
scatter_chart(data, options={}, &block)
click to toggle source
# File lib/apex_charts/charts/syncing_charts.rb, line 45 def scatter_chart(data, options={}, &block) options[:id] = apexcharts_id outer_self = eval('self', block.binding, __FILE__, __LINE__) if block_given? @html += ScatterChart.new(outer_self, data, @options.merge(options), &block).render end
Private Instance Methods
build_instance_variables()
click to toggle source
# File lib/apex_charts/charts/syncing_charts.rb, line 78 def build_instance_variables (@outer_self.instance_variables - instance_variables).each do |i| instance_variable_set(i, @outer_self.instance_variable_get(i)) end end