Class: OpenFlashChart::AreaBase

Inherits:
Base
  • Object
show all
Defined in:
lib/plugins/open_flash_chart/lib/open_flash_chart/area_base.rb

Direct Known Subclasses

AreaHollow, AreaLine

Instance Method Summary (collapse)

Methods inherited from Base

#<<, #add_element, #append_value, #attach_to_right_y_axis, #method_missing, #render, #set_colours, #set_key, #set_offset, #set_range, #set_tooltip, #to_json2

Constructor Details

- (AreaBase) initialize(args = {})

Returns a new instance of AreaBase



3
4
5
6
7
8
# File 'lib/plugins/open_flash_chart/lib/open_flash_chart/area_base.rb', line 3

def initialize args={}
  super
  @type = "area"
  @fill_alpha = 0.35
  @values = []      
end

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class OpenFlashChart::Base

Instance Method Details

- (Object) set_fill_colour(color)



10
11
12
# File 'lib/plugins/open_flash_chart/lib/open_flash_chart/area_base.rb', line 10

def set_fill_colour(color)
  @fill = color
end

- (Object) set_loop



14
15
16
# File 'lib/plugins/open_flash_chart/lib/open_flash_chart/area_base.rb', line 14

def set_loop
  @loop = true
end