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

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

Overview

true

(true / false) whether to show grid on this axis or not. Grid will be shown

only if at least one graph is assigned to this axis #

Constant Summary collapse

VALUES =
[:enabled,:color,:alpha,:dashed,:dash_length,:approx_count,:fill_color,:fill_alpha]

Instance Attribute Summary collapse

Method Summary

Methods included from Base

#build_xml, #initialize, #populate, #to_xml

Instance Attribute Details

#alphaObject

false

(true / false) note, dashed lines affects performance #



513
514
515
# File 'lib/ambling/stock.rb', line 513

def alpha
  @alpha
end

#approx_countObject

#FFFFFF

(hex code) Every second area between grid lines will be filled with this color (remember to set fill_alpha > 0) #



525
526
527
# File 'lib/ambling/stock.rb', line 525

def approx_count
  @approx_count
end

#colorObject

15

(0 - 100) grid opacity #



509
510
511
# File 'lib/ambling/stock.rb', line 509

def color
  @color
end

#dash_lengthObject

5

(Number) Approximate number of grid lines #



521
522
523
# File 'lib/ambling/stock.rb', line 521

def dash_length
  @dash_length
end

#dashedObject

5

(Number) #



517
518
519
# File 'lib/ambling/stock.rb', line 517

def dashed
  @dashed
end

#enabledObject

#000000

(hex code) grid color #



505
506
507
# File 'lib/ambling/stock.rb', line 505

def enabled
  @enabled
end

#fill_alphaObject

Returns the value of attribute fill_alpha.



533
534
535
# File 'lib/ambling/stock.rb', line 533

def fill_alpha
  @fill_alpha
end

#fill_colorObject

0

(0 - 100) opacity of fill #



529
530
531
# File 'lib/ambling/stock.rb', line 529

def fill_color
  @fill_color
end