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

Included Modules

Base

Constants

VALUES = [:radius,:text_color,:text_size,:max_width,:show,:show_lines,:line_color,:line_alpha,:hide_labels_percent]

Attributes

hide_labels_percent  [RW] 
0
data labels of slices less then skip_labels_percent% will be hidden (to avoid label overlapping if there are many small pie slices)
line_alpha  [RW] 
15
(Number)
line_color  [RW] 
000000
(hex color code)
max_width  [RW] 
120
(Number)
radius  [RW] 
30
(Number) distance of the labels from the pie. Use negative value to place labels on the pie
show  [RW] 
({value} {title} {percents}) You can format any data label: {value} - will be replaced with value and so on. You can add your own text or html code too.
show_lines  [RW] 
true
(true / false) whether to show lines from slices to data labels or not
text_color  [RW] 
text_color
(hex color code)
text_size  [RW] 
text_size
(Number)

[Validate]