Class: Ambling::Xy::Settings::Values::Y
- Inherits:
-
Object
- Object
- Ambling::Xy::Settings::Values::Y
- Includes:
- Base
- Defined in:
- lib/ambling/xy.rb
Overview
y axis
Constant Summary collapse
- VALUES =
[:enabled,:type,:reverse,:min,:max,:strict_min_max,:frequency,:rotate,:skip_first,:skip_last,:color,:text_size,:unit,:unit_position,:integers_only,:inside]
Instance Attribute Summary collapse
-
#color ⇒ Object
- text_color
-
(hex color code).
-
#enabled ⇒ Object
- true
-
(true / false).
-
#frequency ⇒ Object
- 1
-
(Number) how often values should be placed, 1 - near every gridline, 2 - near every second gridline…
-
#inside ⇒ Object
- false
-
(true / false) if set to true, axis values will be displayed inside plot area.
-
#integers_only ⇒ Object
- false
-
(true / false) if set to true, values with decimals will be omitted.
-
#max ⇒ Object
-
(Number) maximum value of this axis.
-
#min ⇒ Object
-
(Number) minimum value of this axis.
-
#reverse ⇒ Object
- false
-
(true / false) whether to reverse this axis values or not.
-
#rotate ⇒ Object
- 0
-
(0 - 90) angle of rotation.
-
#skip_first ⇒ Object
- true
-
(true / false) to skip or not first value.
-
#skip_last ⇒ Object
- false
-
(true / false) to skip or not last value.
-
#strict_min_max ⇒ Object
- 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.
-
#text_size ⇒ Object
- text_size
-
(Number).
-
#type ⇒ Object
“date” means that your axis will display dates (you must specify date formats in <date_formats>).
-
#unit ⇒ Object
-
(text).
-
#unit_position ⇒ Object
- right
-
(right / left).
Method Summary
Methods included from Base
#build_xml, #initialize, #populate, #to_xml
Instance Attribute Details
#color ⇒ Object
- text_color
-
(hex color code)
560 561 562 |
# File 'lib/ambling/xy.rb', line 560 def color @color end |
#enabled ⇒ Object
- true
-
(true / false)
510 511 512 |
# File 'lib/ambling/xy.rb', line 510 def enabled @enabled end |
#frequency ⇒ Object
- 1
-
(Number) how often values should be placed, 1 - near every gridline, 2 - near every second gridline…
540 541 542 |
# File 'lib/ambling/xy.rb', line 540 def frequency @frequency end |
#inside ⇒ Object
- 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)
585 586 587 |
# File 'lib/ambling/xy.rb', line 585 def inside @inside end |
#integers_only ⇒ Object
- false
-
(true / false) if set to true, values with decimals will be omitted
580 581 582 |
# File 'lib/ambling/xy.rb', line 580 def integers_only @integers_only end |
#max ⇒ Object
-
(Number) maximum value of this axis. If empty, this value will be calculated automatically
530 531 532 |
# File 'lib/ambling/xy.rb', line 530 def max @max end |
#min ⇒ Object
-
(Number) minimum value of this axis. If empty, this value will be calculated automatically.
525 526 527 |
# File 'lib/ambling/xy.rb', line 525 def min @min end |
#reverse ⇒ Object
- 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
520 521 522 |
# File 'lib/ambling/xy.rb', line 520 def reverse @reverse end |
#rotate ⇒ Object
- 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
545 546 547 |
# File 'lib/ambling/xy.rb', line 545 def rotate @rotate end |
#skip_first ⇒ Object
- true
-
(true / false) to skip or not first value
550 551 552 |
# File 'lib/ambling/xy.rb', line 550 def skip_first @skip_first end |
#skip_last ⇒ Object
- false
-
(true / false) to skip or not last value
555 556 557 |
# File 'lib/ambling/xy.rb', line 555 def skip_last @skip_last end |
#strict_min_max ⇒ Object
- 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.
535 536 537 |
# File 'lib/ambling/xy.rb', line 535 def strict_min_max @strict_min_max end |
#text_size ⇒ Object
- text_size
-
(Number)
565 566 567 |
# File 'lib/ambling/xy.rb', line 565 def text_size @text_size end |
#type ⇒ Object
“date” means that your axis will display dates (you must specify date formats in <date_formats>)
515 516 517 |
# File 'lib/ambling/xy.rb', line 515 def type @type end |
#unit ⇒ Object
-
(text)
570 571 572 |
# File 'lib/ambling/xy.rb', line 570 def unit @unit end |
#unit_position ⇒ Object
- right
-
(right / left)
575 576 577 |
# File 'lib/ambling/xy.rb', line 575 def unit_position @unit_position end |