Class: Ambling::Xy::Settings::DateFormats
- Inherits:
-
Object
- Object
- Ambling::Xy::Settings::DateFormats
- Includes:
- Base
- Defined in:
- lib/ambling/xy.rb
Overview
these settings are important only if your axis type is date or duration
Defined Under Namespace
Classes: AxisValues
Constant Summary collapse
- VALUES =
[:date_input,:duration_input,:axis_values,:balloon,:data_labels]
Instance Attribute Summary collapse
-
#axis_values ⇒ Object
when axis type is “date”, you must specify date formats for different intervals.
-
#balloon ⇒ Object
- month DD, YYYY
-
balloon date format.
-
#data_labels ⇒ Object
- month DD, YYYY
-
data labels date format.
-
#date_input ⇒ Object
- YYYY-MM-DD hh:mm:ss
-
(YYYY, MM, DD, hh, mm, ss) date format of your data.
-
#duration_input ⇒ Object
- ss
-
(DD, mm, hh, ss) duration unit of your data (this is important only if your axis type is “duration”).
Method Summary
Methods included from Base
#build_xml, #initialize, #populate, #to_xml
Instance Attribute Details
#axis_values ⇒ Object
when axis type is “date”, you must specify date formats for different intervals. “first” describes date format of the first grid line, “regular” - of all other grid lines
691 692 693 |
# File 'lib/ambling/xy.rb', line 691 def axis_values @axis_values end |
#balloon ⇒ Object
- month DD, YYYY
-
balloon date format
696 697 698 |
# File 'lib/ambling/xy.rb', line 696 def balloon @balloon end |
#data_labels ⇒ Object
- month DD, YYYY
-
data labels date format
701 702 703 |
# File 'lib/ambling/xy.rb', line 701 def data_labels @data_labels end |
#date_input ⇒ Object
- YYYY-MM-DD hh:mm:ss
-
(YYYY, MM, DD, hh, mm, ss) date format of your data
681 682 683 |
# File 'lib/ambling/xy.rb', line 681 def date_input @date_input end |
#duration_input ⇒ Object
- ss
-
(DD, mm, hh, ss) duration unit of your data (this is important only if your axis type is “duration”)
686 687 688 |
# File 'lib/ambling/xy.rb', line 686 def duration_input @duration_input end |