Class Ambling::Column::Settings::Column
In: lib/ambling/column.rb
Parent: Object

Included Modules

Base

Constants

VALUES = [:type,:width,:spacing,:grow_time,:grow_effect,:alpha,:border_color,:border_alpha,:data_labels,:data_labels_text_color,:data_labels_text_size,:data_labels_position,:balloon_text,:link_target,:gradient,:bullet_offset]

Attributes

alpha  [RW] 
100
(Number) alpha of all columns
balloon_text  [RW] 
({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.
border_alpha  [RW] 
0
(Number)
border_color  [RW] 
FFFFFF
(hex color code)
bullet_offset  [RW] 
0
(Number) distance from column / bar to the bullet
data_labels  [RW] 
({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.
data_labels_position  [RW]  if you set "above" for column chart, the data label will be displayed inside column, rotated by 90 degrees
data_labels_text_color  [RW] 
text_color
(hex color code)
data_labels_text_size  [RW] 
text_size
(Number)
gradient  [RW] 
vertical
(horizontal / vertical) Direction of column gradient. Gradient colors are defined in graph settings below.
grow_effect  [RW] 
elastic
(elastic, regular, strong)
grow_time  [RW] 
0
(Number) grow time in seconds. Leave 0 to appear instantly
link_target  [RW] 
(_blank, _top …)
spacing  [RW] 
5
(Number) space between columns of one category axis value, in pixels. Negative values can be used.
type  [RW] 
clustered
(stacked, 100% stacked)
width  [RW] 
80
(0 - 100) width of column (in percents)

[Validate]