Class: Ambling::Pie::Settings::Legend::Values
- Inherits:
-
Object
- Object
- Ambling::Pie::Settings::Legend::Values
- Includes:
- Base
- Defined in:
- lib/ambling/pie.rb
Overview
VALUES
Constant Summary collapse
- VALUES =
[:enabled,:width,:text]
Instance Attribute Summary collapse
-
#enabled ⇒ Object
- false
-
(true / false) whether to show values near legend entries or not.
-
#text ⇒ Object
- percents%
-
(value percents).
-
#width ⇒ Object
-
(Number) width of value text (use it if you want to align all values to the right, othervise leave empty).
Method Summary
Methods included from Base
#build_xml, #initialize, #populate, #to_xml
Instance Attribute Details
#enabled ⇒ Object
- 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 |
#text ⇒ Object
- percents%
-
(value percents)
616 617 618 |
# File 'lib/ambling/pie.rb', line 616 def text @text end |
#width ⇒ Object
-
(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 |