Class Ambling::Pie::Settings::Pie
In: lib/ambling/pie.rb
Parent: Object

Included Modules

Base

Constants

VALUES = [:x,:y,:radius,:inner_radius,:height,:angle,:outline_color,:outline_alpha,:base_color,:brightness_step,:colors,:link_target,:alpha]

Attributes

alpha  [RW] 
100
(0 - 100) slices alpha. You can set individual alphas for every slice in data file. If you set alpha to 0 the slice will be inactive for mouse events and data labels will be hidden. This allows you to make not full pies and donuts.
angle  [RW] 
0
(0 - 90) lean angle (for 3D effect)
base_color  [RW] 
(hex color code) color of first slice
brightness_step  [RW] 
20
(-100 - 100) if base_color is used, every next slice is filled with lighter by brightnessStep % color. Use negative value if you want to get darker colors
colors  [RW] 
0xFF0F00,0xFF6600,0xFF9E01,0xFCD202,0xF8FF01,0xB0DE09,0x04D215,0x0D8ECF,0x0D52D1,0x2A0CD0,0x8A0CCF,0xCD0D74
(hex color codes separated by comas)
height  [RW] 
0
(Number) pie height (for 3D effect)
inner_radius  [RW] 
0
(Number) the radius of the hole (if you want to have donut, use > 0)
link_target  [RW] 
(_blank, _top…) If pie slice has a link this is link target
outline_alpha  [RW] 
0
(Number)
outline_color  [RW] 
FFFFFF
(hex color code)
radius  [RW] 
(Number) If left empty, will be 25% of your chart smaller side
x  [RW]  [](Number) If left empty, will be positioned in the center
y  [RW]  [](Number) If left empty, will be positioned in the center - 20px

[Validate]