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

LEGEND

Included Modules

Base

Classes and Modules

Class Ambling::Line::Settings::Legend::Key
Class Ambling::Line::Settings::Legend::Values

Constants

VALUES = [:enabled,:x,:y,:width,:max_columns,:color,:alpha,:border_color,:border_alpha,:text_color,:text_color_hover,:text_size,:spacing,:margins,:graph_on_off,:reverse_order,:key,:values]

Attributes

alpha  [RW] 
0
(0 - 100) background alpha
border_alpha  [RW] 
0
(0 - 100) border alpha
border_color  [RW] 
000000
(hex color code) border color
color  [RW] 
FFFFFF
(hex color code) background color
enabled  [RW] 
true
(true / false)
graph_on_off  [RW] 
true
(true / false) if true, color box gains "checkbox" function - it is possible to make graphs visible/invisible by clicking on this checkbox
key  [RW]  KEY (the color box near every legend entry)
margins  [RW] 
0
(Number) legend margins (space between legend border and legend entries, recommended to use only if legend border is visible or background color is different from chart area background color)
max_columns  [RW] 
(Number) the maximum number of columns in the legend
reverse_order  [RW] 
false
(true / false) whether to sort legend entries in a reverse order
spacing  [RW] 
10
(Number) vertical and horizontal gap between legend entries
text_color  [RW] 
text_color
(hex color code)
text_color_hover  [RW] 
BBBB00
(hex color code)
text_size  [RW] 
text_size
(Number)
values  [RW]  VALUES
width  [RW] 
(Number) if empty, will be equal to plot area width
x  [RW] 
(Number) if empty, will be equal to left margin
y  [RW] 
(Number) if empty, will be 20px below x axis values

[Validate]