Class Ambling::Xy::Settings::Graphs::Graph
In: lib/ambling/xy.rb
Parent: Object

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

Included Modules

Base

Constants

VALUES = [:title,:color,:alpha,:width,:data_labels,:balloon_text,:bullet_max_size,:bullet_min_size,:bullet,:bullet_size,:bullet_color,:bullet_alpha,:visible_in_legend]
ATTRIBUTES = [:gid]

Attributes

alpha  [RW] 
100
(0 - 100) line alpha. WIll not affect bullets. Set to 0 if you want the line to be invisible
balloon_text  [RW] 
({title} {value} {description} {x} {y} {percents}) 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. You can also use {title}, {value} and other tags in description.
bullet  [RW] 
(square, round, square_outlined, round_outlined, 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
bullet_alpha  [RW] 
100
(Number)
bullet_color  [RW] 
(hex color code) bullet color. If not defined, graph color is used
bullet_max_size  [RW] 
50
maximum size of a bullet (balloon) The bullet with the highest value will be equal to this size
bullet_min_size  [RW] 
0
minimum size of a bullet (balloon)
bullet_size  [RW] 
(Number) bullet size. This param is only used if your values are not set in data file
color  [RW] 
(hex color code)
data_labels  [RW] 
({title} {value} {description} {x} {y} {percents}) 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.
gid  [RW]  xml attribute
title  [RW] 
(graph title)
visible_in_legend  [RW] 
true
(true / false) whether to show legend entry for this graph or not
width  [RW] 
0
(Number) line width

[Validate]