Class: Ambling::Stock::Settings::Charts::Chart::Values::YLeft
- Inherits:
-
Object
- Object
- Ambling::Stock::Settings::Charts::Chart::Values::YLeft
- Includes:
- Base
- Defined in:
- lib/ambling/stock.rb
Overview
- true
-
(true / false) whether to show values on this axis or not. Values will be
shown only if at least one graph is assigned to this axis #
Defined Under Namespace
Classes: DigitsAfterDecimal
Constant Summary collapse
- VALUES =
[:enabled,:min,:max,:integers_only,:text_color,:text_size,:bg_color,:bg_alpha,:unit,:unit_position,:digits_after_decimal]
Instance Attribute Summary collapse
-
#bg_alpha ⇒ Object
-
(text) unit which will be added to values on y axis#.
-
#bg_color ⇒ Object
- 0
-
(0 - 100) background opacity #.
-
#digits_after_decimal ⇒ Object
- number_format.digits_after_decimal.data
-
(Number) number of digits after decimal #.
-
#enabled ⇒ Object
-
(Number / min) If you do not set any number here, the min value will be calculated automatically.
-
#integers_only ⇒ Object
- text_color
-
(hex code) #.
-
#max ⇒ Object
- false
-
(true / false) Set this to true, if you don’t want values with decimals to be shown#.
-
#min ⇒ Object
-
(Number / min) If you do not set any number here, the max value will be calculated automatically.
-
#text_color ⇒ Object
- text_size
-
(Number) #.
-
#text_size ⇒ Object
- #FFFFFF
-
(hex code) background color of a value #.
-
#unit ⇒ Object
- right
-
(left / right) #.
-
#unit_position ⇒ Object
defines how many numbers should be displayed after comma #.
Method Summary
Methods included from Base
#build_xml, #initialize, #populate, #to_xml
Instance Attribute Details
#bg_alpha ⇒ Object
-
(text) unit which will be added to values on y axis#
668 669 670 |
# File 'lib/ambling/stock.rb', line 668 def bg_alpha @bg_alpha end |
#bg_color ⇒ Object
- 0
-
(0 - 100) background opacity #
664 665 666 |
# File 'lib/ambling/stock.rb', line 664 def bg_color @bg_color end |
#digits_after_decimal ⇒ Object
- number_format.digits_after_decimal.data
-
(Number) number of digits after decimal #
680 681 682 |
# File 'lib/ambling/stock.rb', line 680 def digits_after_decimal @digits_after_decimal end |
#enabled ⇒ Object
-
(Number / min) If you do not set any number here, the min value will be calculated
automatically. In case you set some value here, but the actual min value will be less, then this setting will be ignored. If you want to avoid "jumping" while dragging the chart, you can set "min" here, then the min value will be calculated using all the data, not only the selected period. #
635 636 637 |
# File 'lib/ambling/stock.rb', line 635 def enabled @enabled end |
#integers_only ⇒ Object
- text_color
-
(hex code) #
652 653 654 |
# File 'lib/ambling/stock.rb', line 652 def integers_only @integers_only end |
#max ⇒ Object
- false
-
(true / false) Set this to true, if you don’t want values with decimals to be
shown#
648 649 650 |
# File 'lib/ambling/stock.rb', line 648 def max @max end |
#min ⇒ Object
-
(Number / min) If you do not set any number here, the max value will be calculated
automatically. In case you set some value here, but the actual max value will be bigger, then this setting will be ignored. If you want to avoid "jumping" while dragging the chart, you can set "max" here, then the max value will be calculated using all the data, not only the selected period. #
643 644 645 |
# File 'lib/ambling/stock.rb', line 643 def min @min end |
#text_color ⇒ Object
- text_size
-
(Number) #
656 657 658 |
# File 'lib/ambling/stock.rb', line 656 def text_color @text_color end |
#text_size ⇒ Object
- #FFFFFF
-
(hex code) background color of a value #
660 661 662 |
# File 'lib/ambling/stock.rb', line 660 def text_size @text_size end |
#unit ⇒ Object
- right
-
(left / right) #
672 673 674 |
# File 'lib/ambling/stock.rb', line 672 def unit @unit end |
#unit_position ⇒ Object
defines how many numbers should be displayed after comma #
676 677 678 |
# File 'lib/ambling/stock.rb', line 676 def unit_position @unit_position end |