Class: Ambling::Line::Settings::Grid::YRight

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

Overview

horizontal grid, Y right axis. Visible only if there is at least one graph assigned to right 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

15

(0 - 100)



486
487
488
# File 'lib/ambling/line.rb', line 486

def alpha
  @alpha
end

#approx_countObject

10

(Number) approximate number of gridlines



501
502
503
# File 'lib/ambling/line.rb', line 501

def approx_count
  @approx_count
end

#colorObject

#000000

(hex color code)



481
482
483
# File 'lib/ambling/line.rb', line 481

def color
  @color
end

#dash_lengthObject

5

(Number)



496
497
498
# File 'lib/ambling/line.rb', line 496

def dash_length
  @dash_length
end

#dashedObject

false

(true / false)



491
492
493
# File 'lib/ambling/line.rb', line 491

def dashed
  @dashed
end

#enabledObject

true

(true / false)



476
477
478
# File 'lib/ambling/line.rb', line 476

def enabled
  @enabled
end

#fill_alphaObject

0

(0 - 100) opacity of fill



511
512
513
# File 'lib/ambling/line.rb', line 511

def fill_alpha
  @fill_alpha
end

#fill_colorObject

#FFFFFF

(hex color code) every second area between gridlines will be filled with this color (you will need to set fill_alpha > 0)



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

def fill_color
  @fill_color
end