Class: Ambling::Pie::Settings::Balloon
- Inherits:
-
Object
- Object
- Ambling::Pie::Settings::Balloon
- Includes:
- Base
- Defined in:
- lib/ambling/pie.rb
Overview
BALLOON
Constant Summary collapse
- VALUES =
[:enabled,:color,:alpha,:text_color,:text_size,:show,:max_width,:corner_radius,:border_width,:border_alpha,:border_color]
Instance Attribute Summary collapse
-
#alpha ⇒ Object
- 80
-
(0 - 100).
-
#border_alpha ⇒ Object
- balloon.alpha
-
(Number).
-
#border_color ⇒ Object
- balloon.color
-
(hex color code).
-
#border_width ⇒ Object
- 0
-
(Number).
-
#color ⇒ Object
-
(hex color code) balloon background color.
-
#corner_radius ⇒ Object
- 0
-
(Number) Corner radius of a balloon.
-
#enabled ⇒ Object
- true
-
(true / false).
-
#max_width ⇒ Object
- 220
-
(Number) The maximum width of a balloon.
-
#show ⇒ Object
- title: percents% (value)
description -
(value title percents description) You can format any data label: value - will be replaced with value and so on.
- title: percents% (value)
-
#text_color ⇒ Object
- #FFFFFF
-
(hex color code).
-
#text_size ⇒ Object
- text_size
-
(Number).
Method Summary
Methods included from Base
#build_xml, #initialize, #populate, #to_xml
Instance Attribute Details
#alpha ⇒ Object
- 80
-
(0 - 100)
444 445 446 |
# File 'lib/ambling/pie.rb', line 444 def alpha @alpha end |
#border_alpha ⇒ Object
- balloon.alpha
-
(Number)
479 480 481 |
# File 'lib/ambling/pie.rb', line 479 def border_alpha @border_alpha end |
#border_color ⇒ Object
- balloon.color
-
(hex color code)
484 485 486 |
# File 'lib/ambling/pie.rb', line 484 def border_color @border_color end |
#border_width ⇒ Object
- 0
-
(Number)
474 475 476 |
# File 'lib/ambling/pie.rb', line 474 def border_width @border_width end |
#color ⇒ Object
-
(hex color code) balloon background color. If empty, slightly darker then current slice color will be used
439 440 441 |
# File 'lib/ambling/pie.rb', line 439 def color @color end |
#corner_radius ⇒ Object
- 0
-
(Number) Corner radius of a balloon. If you set it > 0, the balloon will not display arrow
469 470 471 |
# File 'lib/ambling/pie.rb', line 469 def corner_radius @corner_radius end |
#enabled ⇒ Object
- true
-
(true / false)
434 435 436 |
# File 'lib/ambling/pie.rb', line 434 def enabled @enabled end |
#max_width ⇒ Object
- 220
-
(Number) The maximum width of a balloon
464 465 466 |
# File 'lib/ambling/pie.rb', line 464 def max_width @max_width end |
#show ⇒ Object
- title: percents% (value)
description -
(value title percents description) You can format any data label: value - will be replaced with value and so on. You can add your own text or html code too.
459 460 461 |
# File 'lib/ambling/pie.rb', line 459 def show @show end |
#text_color ⇒ Object
- #FFFFFF
-
(hex color code)
449 450 451 |
# File 'lib/ambling/pie.rb', line 449 def text_color @text_color end |
#text_size ⇒ Object
- text_size
-
(Number)
454 455 456 |
# File 'lib/ambling/pie.rb', line 454 def text_size @text_size end |