Class: Ambling::Column::Settings::Line
- Inherits:
-
Object
- Object
- Ambling::Column::Settings::Line
- Includes:
- Base
- Defined in:
- lib/ambling/column.rb
Overview
Here are general settings for “line” graph type. You can set most of these settings for individual lines in graph settings below
Constant Summary collapse
- VALUES =
[:connect,:width,:alpha,:fill_alpha,:bullet,:bullet_size,:data_labels,:data_labels_text_color,:data_labels_text_size,:balloon_text,:link_target]
Instance Attribute Summary collapse
-
#alpha ⇒ Object
- 100
-
(Number) line alpha.
-
#balloon_text ⇒ Object
-
use the same formatting rules as for data labels.
-
#bullet ⇒ Object
-
(square, round, square_outlined, round_outlined, square_outline, round_outline, filename.swf) can be used predefined bullets or loaded custom bullets.
-
#bullet_size ⇒ Object
- 8
-
(Number) bullet size.
-
#connect ⇒ Object
- false
-
(true / false) whether to connect points if data is missing.
-
#data_labels ⇒ Object
-
(title value series percents start difference total) You can format any data label: title will be replaced with real title, value - with value and so on.
-
#data_labels_text_color ⇒ Object
- text_color
-
(hex color code).
-
#data_labels_text_size ⇒ Object
- text_size
-
(Number).
-
#fill_alpha ⇒ Object
- 0
-
(Number) fill alpha.
-
#link_target ⇒ Object
-
(_blank, _top …).
-
#width ⇒ Object
- 2
-
(Number) line width.
Method Summary
Methods included from Base
#build_xml, #initialize, #populate, #to_xml
Instance Attribute Details
#alpha ⇒ Object
- 100
-
(Number) line alpha
301 302 303 |
# File 'lib/ambling/column.rb', line 301 def alpha @alpha end |
#balloon_text ⇒ Object
-
use the same formatting rules as for data labels
336 337 338 |
# File 'lib/ambling/column.rb', line 336 def balloon_text @balloon_text end |
#bullet ⇒ Object
-
(square, round, square_outlined, round_outlined, square_outline, round_outline, filename.swf) can be used predefined bullets or loaded custom bullets. Leave empty if you don’t want to have bullets at all. Outlined bullets use plot area color for outline color
311 312 313 |
# File 'lib/ambling/column.rb', line 311 def bullet @bullet end |
#bullet_size ⇒ Object
- 8
-
(Number) bullet size
316 317 318 |
# File 'lib/ambling/column.rb', line 316 def bullet_size @bullet_size end |
#connect ⇒ Object
- false
-
(true / false) whether to connect points if data is missing
291 292 293 |
# File 'lib/ambling/column.rb', line 291 def connect @connect end |
#data_labels ⇒ Object
-
(title value series percents start difference total) You can format any data label: title will be replaced with real title, value - with value and so on. You can add your own text or html code too.
321 322 323 |
# File 'lib/ambling/column.rb', line 321 def data_labels @data_labels end |
#data_labels_text_color ⇒ Object
- text_color
-
(hex color code)
326 327 328 |
# File 'lib/ambling/column.rb', line 326 def data_labels_text_color @data_labels_text_color end |
#data_labels_text_size ⇒ Object
- text_size
-
(Number)
331 332 333 |
# File 'lib/ambling/column.rb', line 331 def data_labels_text_size @data_labels_text_size end |
#fill_alpha ⇒ Object
- 0
-
(Number) fill alpha
306 307 308 |
# File 'lib/ambling/column.rb', line 306 def fill_alpha @fill_alpha end |
#link_target ⇒ Object
-
(_blank, _top …)
341 342 343 |
# File 'lib/ambling/column.rb', line 341 def link_target @link_target end |
#width ⇒ Object
- 2
-
(Number) line width
296 297 298 |
# File 'lib/ambling/column.rb', line 296 def width @width end |