Class: OpenFlashChart::XAxis
- Inherits:
-
Base
- Object
- Base
- OpenFlashChart::XAxis
- Defined in:
- lib/plugins/open_flash_chart/lib/open_flash_chart/x_axis.rb
Instance Method Summary (collapse)
- - (Object) set_3d(v)
-
- (Object) set_labels(labels)
(also: #labels=)
for some reason the json that needs to be produced is like this: “x_axis”: { “offset”: false, “labels”: { “labels”: [ “Jan”, “Feb”, “Mar”, “Apr”, “May”, “Jun”, “Jul”, “Aug”, “Sep”, “Oct”, “Nov”, “Dec” ] } } note the “labels”:.….
Methods inherited from Base
#<<, #add_element, #append_value, #attach_to_right_y_axis, #initialize, #method_missing, #render, #set_colours, #set_key, #set_offset, #set_range, #set_tooltip, #to_json2
Constructor Details
This class inherits a constructor from OpenFlashChart::Base
Dynamic Method Handling
This class handles dynamic methods through the method_missing method in the class OpenFlashChart::Base
Instance Method Details
- (Object) set_3d(v)
4 5 6 |
# File 'lib/plugins/open_flash_chart/lib/open_flash_chart/x_axis.rb', line 4 def set_3d(v) @threed = v end |
- (Object) set_labels(labels) Also known as: labels=
for some reason the json that needs to be produced is like this: “x_axis”: { “offset”: false, “labels”: { “labels”: [ “Jan”, “Feb”, “Mar”, “Apr”, “May”, “Jun”, “Jul”, “Aug”, “Sep”, “Oct”, “Nov”, “Dec” ] } } note the “labels”:.…
10 11 12 13 |
# File 'lib/plugins/open_flash_chart/lib/open_flash_chart/x_axis.rb', line 10 def set_labels(labels) @labels = labels @labels = {:labels => labels} unless labels.is_a?(XAxisLabels) end |