Class: Ambling::Line::Settings::Balloon
- Inherits:
-
Object
- Object
- Ambling::Line::Settings::Balloon
- Includes:
- Base
- Defined in:
- lib/ambling/line.rb
Overview
BALLOON
Constant Summary collapse
- VALUES =
[:enabled,:only_one,:on_off,:color,:alpha,:text_color,:text_size,:max_width,:corner_radius,:border_width,:border_alpha,:border_color]
Instance Attribute Summary collapse
-
#alpha ⇒ Object
-
(0 - 100) balloon background opacity.
-
#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
-
(Number) The maximum width of a balloon.
-
#on_off ⇒ Object
- true
-
(true/false) whether it will be possible to turn on or off y balloons by clicking on a legend or on a graph.
-
#only_one ⇒ Object
- false
-
(true / false) if set to true, only one balloon at a time will be displayed.
-
#text_color ⇒ Object
-
(hex color code) baloon text color.
-
#text_size ⇒ Object
- text_size
-
(Number).
Method Summary
Methods included from Base
#build_xml, #initialize, #populate, #to_xml
Instance Attribute Details
#alpha ⇒ Object
-
(0 - 100) balloon background opacity. If not set, graph.balloon_alpha will be used.
961 962 963 |
# File 'lib/ambling/line.rb', line 961 def alpha @alpha end |
#border_alpha ⇒ Object
- balloon.alpha
-
(Number)
991 992 993 |
# File 'lib/ambling/line.rb', line 991 def border_alpha @border_alpha end |
#border_color ⇒ Object
- balloon.color
-
(hex color code)
996 997 998 |
# File 'lib/ambling/line.rb', line 996 def border_color @border_color end |
#border_width ⇒ Object
- 0
-
(Number)
986 987 988 |
# File 'lib/ambling/line.rb', line 986 def border_width @border_width end |
#color ⇒ Object
-
(hex color code) balloon background color. If not set, graph.balloon_color will be used.
956 957 958 |
# File 'lib/ambling/line.rb', line 956 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
981 982 983 |
# File 'lib/ambling/line.rb', line 981 def corner_radius @corner_radius end |
#enabled ⇒ Object
- true
-
(true / false)
941 942 943 |
# File 'lib/ambling/line.rb', line 941 def enabled @enabled end |
#max_width ⇒ Object
-
(Number) The maximum width of a balloon. If not set, half width of plot area will be used
976 977 978 |
# File 'lib/ambling/line.rb', line 976 def max_width @max_width end |
#on_off ⇒ Object
- true
-
(true/false) whether it will be possible to turn on or off y balloons by clicking on a legend or on a graph
951 952 953 |
# File 'lib/ambling/line.rb', line 951 def on_off @on_off end |
#only_one ⇒ Object
- false
-
(true / false) if set to true, only one balloon at a time will be displayed
946 947 948 |
# File 'lib/ambling/line.rb', line 946 def only_one @only_one end |
#text_color ⇒ Object
-
(hex color code) baloon text color. If not set, graph.balloon_text_color will be used
966 967 968 |
# File 'lib/ambling/line.rb', line 966 def text_color @text_color end |
#text_size ⇒ Object
- text_size
-
(Number)
971 972 973 |
# File 'lib/ambling/line.rb', line 971 def text_size @text_size end |