Class: Ambling::Line::Settings::Values::X

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

Overview

x axis

Constant Summary collapse

VALUES =
[:enabled,:rotate,:frequency,:skip_first,:skip_last,:color,:text_size,:inside]

Instance Attribute Summary collapse

Method Summary

Methods included from Base

#build_xml, #initialize, #populate, #to_xml

Instance Attribute Details

#colorObject

text_color

(hex color code)



572
573
574
# File 'lib/ambling/line.rb', line 572

def color
  @color
end

#enabledObject

true

(true / false)



547
548
549
# File 'lib/ambling/line.rb', line 547

def enabled
  @enabled
end

#frequencyObject

1

(Number) how often values should be placed, 1 - near every gridline, 2 - near every second gridline…



557
558
559
# File 'lib/ambling/line.rb', line 557

def frequency
  @frequency
end

#insideObject

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)



582
583
584
# File 'lib/ambling/line.rb', line 582

def inside
  @inside
end

#rotateObject

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



552
553
554
# File 'lib/ambling/line.rb', line 552

def rotate
  @rotate
end

#skip_firstObject

false

(true / false) to skip or not first value



562
563
564
# File 'lib/ambling/line.rb', line 562

def skip_first
  @skip_first
end

#skip_lastObject

false

(true / false) to skip or not last value



567
568
569
# File 'lib/ambling/line.rb', line 567

def skip_last
  @skip_last
end

#text_sizeObject

text_size

(Number)



577
578
579
# File 'lib/ambling/line.rb', line 577

def text_size
  @text_size
end