Class: Ambling::Xy::Settings::DateFormats

Inherits:
Object
  • Object
show all
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

Method Summary

Methods included from Base

#build_xml, #initialize, #populate, #to_xml

Instance Attribute Details

#axis_valuesObject

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

#balloonObject

month DD, YYYY

balloon date format



696
697
698
# File 'lib/ambling/xy.rb', line 696

def balloon
  @balloon
end

#data_labelsObject

month DD, YYYY

data labels date format



701
702
703
# File 'lib/ambling/xy.rb', line 701

def data_labels
  @data_labels
end

#date_inputObject

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_inputObject

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