Class: Ambling::Pie::Settings::Legend::Values

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

Overview

VALUES

Constant Summary collapse

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

Instance Attribute Summary collapse

Method Summary

Methods included from Base

#build_xml, #initialize, #populate, #to_xml

Instance Attribute Details

#enabledObject

false

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



606
607
608
# File 'lib/ambling/pie.rb', line 606

def enabled
  @enabled
end

#textObject

percents%

(value percents)



616
617
618
# File 'lib/ambling/pie.rb', line 616

def text
  @text
end

#widthObject

(Number) width of value text (use it if you want to align all values to the right, othervise leave empty)



611
612
613
# File 'lib/ambling/pie.rb', line 611

def width
  @width
end