Class: OpenFlashChart::XAxisLabel
- Inherits:
-
Base
- Object
- Base
- OpenFlashChart::XAxisLabel
- Defined in:
- lib/plugins/open_flash_chart/lib/open_flash_chart/x_axis_label.rb
Instance Method Summary (collapse)
-
- (XAxisLabel) initialize(text, colour, size, rotate, args = {})
constructor
A new instance of XAxisLabel.
- - (Object) set_vertical
- - (Object) set_visible
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
- (XAxisLabel) initialize(text, colour, size, rotate, args = {})
Returns a new instance of XAxisLabel
4 5 6 7 8 9 10 |
# File 'lib/plugins/open_flash_chart/lib/open_flash_chart/x_axis_label.rb', line 4 def initialize(text, colour, size, rotate, args={}) super args @text = text @colour = colour @size = size @rotate = rotate end |
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class OpenFlashChart::Base
Instance Method Details
- (Object) set_vertical
12 13 14 |
# File 'lib/plugins/open_flash_chart/lib/open_flash_chart/x_axis_label.rb', line 12 def set_vertical @rotate = "vertical" end |
- (Object) set_visible
16 17 18 |
# File 'lib/plugins/open_flash_chart/lib/open_flash_chart/x_axis_label.rb', line 16 def set_visible @visible = true end |