Class: Ambling::Column::Settings::Line

Inherits:
Object
  • Object
show all
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

Method Summary

Methods included from Base

#build_xml, #initialize, #populate, #to_xml

Instance Attribute Details

#alphaObject

100

(Number) line alpha



301
302
303
# File 'lib/ambling/column.rb', line 301

def alpha
  @alpha
end

#balloon_textObject

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

#bulletObject

(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_sizeObject

8

(Number) bullet size



316
317
318
# File 'lib/ambling/column.rb', line 316

def bullet_size
  @bullet_size
end

#connectObject

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_labelsObject

(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_colorObject

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_sizeObject

text_size

(Number)



331
332
333
# File 'lib/ambling/column.rb', line 331

def data_labels_text_size
  @data_labels_text_size
end

#fill_alphaObject

0

(Number) fill alpha



306
307
308
# File 'lib/ambling/column.rb', line 306

def fill_alpha
  @fill_alpha
end

(_blank, _top …)



341
342
343
# File 'lib/ambling/column.rb', line 341

def link_target
  @link_target
end

#widthObject

2

(Number) line width



296
297
298
# File 'lib/ambling/column.rb', line 296

def width
  @width
end