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

if you are using XML data file, graph "gid" must match graph "gid" in data file

Included Modules

Base

Constants

VALUES = [:type,:title,:color,:alpha,:data_labels,:gradient_fill_colors,:balloon_color,:balloon_alpha,:balloon_text_color,:balloon_text,:fill_alpha,:width,:bullet,:bullet_size,:bullet_color,:visible_in_legend]
ATTRIBUTES = [:gid]

Attributes

alpha  [RW] 
column.alpha (line.alpha)
(0 - 100)
balloon_alpha  [RW] 
balloon.alpha
(0 - 100)
balloon_color  [RW] 
balloon.color
(hex color code) leave empty to use the same color as graph
balloon_text  [RW] 
column(line).balloon.text
({title} {value} {series} {description} {percents}) You can format any balloon text: {title} will be replaced with real title, {value} - with value and so on. You can add your own text or html code too.
balloon_text_color  [RW] 
balloon.text_color
(hex color code)
bullet  [RW] 
line.bullet
(round, square, round_outlined, square_outlined, filename)
bullet_color  [RW] 
(hex color code) bullet color. If not defined, line color is used
bullet_size  [RW] 
line.bullet_size
(Number) bullet size
color  [RW] 
(hex color code)
data_labels  [RW] 
column.data_labels (line.data_labels)
({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.
fill_alpha  [RW] 
0
(0 - 100) fill alpha (use it if you want to have area chart)
gid  [RW]  xml attribute
gradient_fill_colors  [RW] 
(hex color codes separated by comas) columns can be filled with gradients. Set any number of colors here. Note, that the legend key will be filled with color value, not with gradient.
title  [RW] 
(graph title)
type  [RW] 
visible_in_legend  [RW] 
true
(true / false) whether to show legend entry for this graph or not
width  [RW] 
2
(Number) line width

[Validate]