Class: Ambling::Stock::Settings::Charts::Chart::Values::YLeft

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

Method Summary

Methods included from Base

#build_xml, #initialize, #populate, #to_xml

Instance Attribute Details

#bg_alphaObject

(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_colorObject

0

(0 - 100) background opacity #



664
665
666
# File 'lib/ambling/stock.rb', line 664

def bg_color
  @bg_color
end

#digits_after_decimalObject

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

#enabledObject

(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_onlyObject

text_color

(hex code) #



652
653
654
# File 'lib/ambling/stock.rb', line 652

def integers_only
  @integers_only
end

#maxObject

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

#minObject

(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_colorObject

text_size

(Number) #



656
657
658
# File 'lib/ambling/stock.rb', line 656

def text_color
  @text_color
end

#text_sizeObject

#FFFFFF

(hex code) background color of a value #



660
661
662
# File 'lib/ambling/stock.rb', line 660

def text_size
  @text_size
end

#unitObject

right

(left / right) #



672
673
674
# File 'lib/ambling/stock.rb', line 672

def unit
  @unit
end

#unit_positionObject

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