Class: Ambling::Line::Settings::Legend::Values

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

Overview

VALUES

Constant Summary collapse

VALUES =
[:enabled,:width,:align,:text]

Instance Attribute Summary collapse

Method Summary

Methods included from Base

#build_xml, #initialize, #populate, #to_xml

Instance Attribute Details

#alignObject

right

(right / left)



1143
1144
1145
# File 'lib/ambling/line.rb', line 1143

def align
  @align
end

#enabledObject

false

(true / false) whether to show values near legend entries or not



1133
1134
1135
# File 'lib/ambling/line.rb', line 1133

def enabled
  @enabled
end

#textObject

value

(title value series description percents) You can format any text: value will be replaced with value, description - with description and so on. You can add your own text or html code too.



1148
1149
1150
# File 'lib/ambling/line.rb', line 1148

def text
  @text
end

#widthObject

80

(Number) width of text field for value



1138
1139
1140
# File 'lib/ambling/line.rb', line 1138

def width
  @width
end