Class Ambling::Line::Settings::Values::YRight
In: lib/ambling/line.rb
Parent: Object

y right axis

Included Modules

Base

Constants

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

Attributes

color  [RW] 
text_color
(hex color code)
enabled  [RW] 
true
(true / false)
frequency  [RW] 
1
(Number) how often values should be placed, 1 - near every gridline, 2 - near every second gridline…
inside  [RW] 
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)
integers_only  [RW] 
false
(true / false) if set to true, values with decimals will be omitted
max  [RW] 
(Number) maximum value of this axis. If empty, this value will be calculated automatically
min  [RW] 
(Number) minimum value of this axis. If empty, this value will be calculated automatically
reverse  [RW] 
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
rotate  [RW] 
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
skip_first  [RW] 
true
(true / false) to skip or not first value
skip_last  [RW] 
false
(true / false) to skip or not last value
strict_min_max  [RW] 
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.
text_size  [RW] 
text_size
(Number)
unit  [RW] 
(text) unit which will be added to values on y axis
unit_position  [RW] 
right
(left / right)

[Validate]