Class: OpenFlashChart::LineBase

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

Direct Known Subclasses

Line, LineDot, LineHollow, LineStyle

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

- (LineBase) initialize(args = {})

Returns a new instance of LineBase



4
5
6
7
8
9
10
# File 'lib/plugins/open_flash_chart/lib/open_flash_chart/line_base.rb', line 4

def initialize args={}
  super
  @type = "line"
  @text = "Page Views"
  @font_size = 10
  @values = []
end

Dynamic Method Handling

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

Instance Method Details

- (Object) loop



12
13
14
# File 'lib/plugins/open_flash_chart/lib/open_flash_chart/line_base.rb', line 12

def loop
  @loop = true
end