Class: Ambling::Line::Settings::Values::YRight

Inherits:
Object
  • Object
show all
Includes:
Base
Defined in:
lib/ambling/line.rb

Overview

y right axis

Constant Summary collapse

VALUES =
[:enabled,:reverse,:rotate,:min,:max,:strict_min_max,:frequency,:skip_first,:skip_last,:color,:text_size,:unit,:unit_position,:integers_only,:inside,:duration]

Instance Attribute Summary collapse

Method Summary

Methods included from Base

#build_xml, #initialize, #populate, #to_xml

Instance Attribute Details

#colorObject

text_color

(hex color code)



726
727
728
# File 'lib/ambling/line.rb', line 726

def color
  @color
end

#durationObject

(ss/mm/hh/DD) In case you want your axis to display formatted durations instead of numbers, you have to set the unit of the duration in your data file. For example, if your values in data file represents seconds, set “ss” here.



756
757
758
# File 'lib/ambling/line.rb', line 756

def duration
  @duration
end

#enabledObject

true

(true / false)



681
682
683
# File 'lib/ambling/line.rb', line 681

def enabled
  @enabled
end

#frequencyObject

1

(Number) how often values should be placed, 1 - near every gridline, 2 - near every second gridline…



711
712
713
# File 'lib/ambling/line.rb', line 711

def frequency
  @frequency
end

#insideObject

false

(true / false) if set to true, axis values will be displayed inside plot area. This setting will not work for values rotated by 1-89 degrees (0 and 90 only)



751
752
753
# File 'lib/ambling/line.rb', line 751

def inside
  @inside
end

#integers_onlyObject

false

(true / false) if set to true, values with decimals will be omitted



746
747
748
# File 'lib/ambling/line.rb', line 746

def integers_only
  @integers_only
end

#maxObject

(Number) maximum value of this axis. If empty, this value will be calculated automatically



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

def max
  @max
end

#minObject

(Number) minimum value of this axis. If empty, this value will be calculated automatically



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

def min
  @min
end

#reverseObject

false

(true / false) whether to reverse this axis values or not. If set to true, values will start from biggest number and will end with a smallest number



686
687
688
# File 'lib/ambling/line.rb', line 686

def reverse
  @reverse
end

#rotateObject

0

(0 - 90) angle of rotation. If you want to rotate by degree from 1 to 89, you must have font.swf file in fonts folder



691
692
693
# File 'lib/ambling/line.rb', line 691

def rotate
  @rotate
end

#skip_firstObject

true

(true / false) to skip or not first value



716
717
718
# File 'lib/ambling/line.rb', line 716

def skip_first
  @skip_first
end

#skip_lastObject

false

(true / false) to skip or not last value



721
722
723
# File 'lib/ambling/line.rb', line 721

def skip_last
  @skip_last
end

#strict_min_maxObject

false

(true / false) by default, if your values are bigger then defined max (or smaller then defined min), max and min is changed so that all the chart would fit to chart area. If you don’t want this, set this option to true.



706
707
708
# File 'lib/ambling/line.rb', line 706

def strict_min_max
  @strict_min_max
end

#text_sizeObject

text_size

(Number)



731
732
733
# File 'lib/ambling/line.rb', line 731

def text_size
  @text_size
end

#unitObject

(text) unit which will be added to values on y axis



736
737
738
# File 'lib/ambling/line.rb', line 736

def unit
  @unit
end

#unit_positionObject

right

(left / right)



741
742
743
# File 'lib/ambling/line.rb', line 741

def unit_position
  @unit_position
end