Class: Ambling::Column::Settings::Values::Category

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

Overview

category axis

Constant Summary collapse

VALUES =
[:enabled,:frequency,:start_from,:rotate,: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/column.rb', line 572

def color
  @color
end

#enabledObject

true

(true / false)



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

def enabled
  @enabled
end

#frequencyObject

1

(Number) how often values should be placed



557
558
559
# File 'lib/ambling/column.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/column.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



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

def rotate
  @rotate
end

#start_fromObject

1

(Number) you can set series from which category values will be displayed



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

def start_from
  @start_from
end

#text_sizeObject

text_size

(Number)



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

def text_size
  @text_size
end