Class: OpenFlashChart::SBox

Inherits:
Anchor show all
Defined in:
lib/plugins/open_flash_chart/lib/open_flash_chart/sugar.rb

Instance Method Summary (collapse)

Methods inherited from DotBase

#position=, #size=

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

- (SBox) initialize(colour, size, args = {})

Returns a new instance of SBox



11
12
13
14
15
16
17
# File 'lib/plugins/open_flash_chart/lib/open_flash_chart/sugar.rb', line 11

def initialize(colour, size, args={})
  super args
  @colour   = colour
  @size     = size
  @sides    = 4
  @rotation = 45
end

Dynamic Method Handling

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