Class: AmCharts::Chart::Rectangular

Inherits:
AmCharts::Chart show all
Defined in:
lib/amcharts/chart/rectangular.rb

Direct Known Subclasses

Serial, XY

Instance Attribute Summary collapse

Attributes inherited from AmCharts::Chart

#container, #data, #data_provider, #data_source, #export, #functions, #graphs, #height, #labels, #legend_div, #legends, #listeners, #loading_indicator, #settings, #titles, #width

Instance Method Summary collapse

Methods inherited from AmCharts::Chart

#add_label, #add_title, amchart_type, #amchart_type, #call_function, #category_axis, #category_field, clear_defaults, defaults, #defer?, #detach_legend, #dimensions=, #export?, #keys, #loading_indicator!, #loading_indicator?, #process_data, type, #type, #update_settings

Constructor Details

#initializeRectangular

Returns a new instance of Rectangular.



7
8
9
10
# File 'lib/amcharts/chart/rectangular.rb', line 7

def initialize(*)
  @value_axes = Collection[Axis::Value]
  super
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class AmCharts::Chart

Instance Attribute Details

#value_axesObject (readonly)

Returns the value of attribute value_axes.



5
6
7
# File 'lib/amcharts/chart/rectangular.rb', line 5

def value_axes
  @value_axes
end

Instance Method Details

#cursor(&block) ⇒ Object



12
13
14
15
# File 'lib/amcharts/chart/rectangular.rb', line 12

def cursor(&block)
  return @cursor unless block_given?
  @cursor ||= Cursor.new(&block)
end

#scrollbar(&block) ⇒ Object



17
18
19
20
# File 'lib/amcharts/chart/rectangular.rb', line 17

def scrollbar(&block)
  return @scrollbar unless block_given?
  @scrollbar ||= ScrollBar.new(&block)
end