Class Ambling::Line::Settings::Graphs::Graph
In: lib/ambling/line.rb
Parent: Object

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

Included Modules

Base

Constants

VALUES = [:axis,:title,:color,:color_hover,:line_alpha,:line_width,:fill_alpha,:fill_color,:balloon_color,:balloon_alpha,:balloon_text_color,:bullet,:bullet_size,:bullet_color,:bullet_alpha,:hidden,:selected,:balloon_text,:data_labels,:data_labels_text_color,:data_labels_text_size,:data_labels_position,:vertical_lines,:visible_in_legend]
ATTRIBUTES = [:gid]

Attributes

axis  [RW] 
left
(left/ right) indicates which y axis should be used
balloon_alpha  [RW] 
100
(0 - 100)
balloon_color  [RW] 
graph color
(hex color code) leave empty to use the same color as graph
balloon_text  [RW] 
{value}<br>{description}
({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] 
FFFFFF
(hex color code)
bullet  [RW]  The chart will look for this file in amline_path folder (amline_path is set in HTML)
bullet_alpha  [RW] 
graph alpha
(hex color code) Leave empty to use the same alpha as graph
bullet_color  [RW] 
graph color
(hex color code) affects only predefined (square and round) bullets, does not change color of custom loaded bullets. Leave empty to use the same color as graph
bullet_size  [RW]  [6](Number) affects only predefined (square and round) bullets, does not change size of custom loaded bullets
color  [RW] 
(hex color code) if not defined, uses colors from this array: FF0000, 0000FF, 00FF00, FF9900, CC00CC, 00CCCC, 33FF00, 990000, 000066
color_hover  [RW] 
BBBB00
(hex color code)
data_labels  [RW]  to avoid overlapping, data labels, the same as bullets are not visible if there are more then hide_bullets_count data points on plot area.
data_labels_position  [RW] 
above
(below / above)
data_labels_text_color  [RW] 
text_color
(hex color code)
data_labels_text_size  [RW] 
text_size
(Number)
fill_alpha  [RW] 
0
(0 - 100) if you want the chart to be area chart, use bigger than 0 value
fill_color  [RW] 
grpah.color
(hex color code)
gid  [RW]  xml attribute
hidden  [RW] 
false
(true / false) vill not be visible until you check corresponding checkbox in the legend
line_alpha  [RW] 
100
(0 - 100)
line_width  [RW] 
0
(Number) 0 for hairline
selected  [RW] 
true
(true / false) if true, balloon indicating value will be visible then roll over plot area
title  [RW] 
(graph title)
vertical_lines  [RW] 
false
(true / false) whether to draw vertical lines or not. If you want to show vertical lines only (without the graph, set line_alpha to 0
visible_in_legend  [RW] 
true
(true / false) whether to show legend entry for this graph or not

[Validate]