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

the top left corner has coordinates x = 0, y = 0

Included Modules


Classes and Modules

Class Ambling::Pie::Settings::Animation
Class Ambling::Pie::Settings::Background
Class Ambling::Pie::Settings::Balloon
Class Ambling::Pie::Settings::DataLabels
Class Ambling::Pie::Settings::ErrorMessages
Class Ambling::Pie::Settings::ExportAsImage
Class Ambling::Pie::Settings::Group
Class Ambling::Pie::Settings::Labels
Class Ambling::Pie::Settings::Legend
Class Ambling::Pie::Settings::Pie
Class Ambling::Pie::Settings::Strings


VALUES = [:data_type,:csv_separator,:skip_rows,:font,:text_size,:text_color,:decimals_separator,:thousands_separator,:digits_after_decimal,:reload_data_interval,:preloader_on_reload,:redraw,:add_time_stamp,:precision,:exclude_invisible,:pie,:animation,:data_labels,:group,:background,:balloon,:legend,:export_as_image,:error_messages,:strings,:labels]


add_time_stamp  [RW] 
(true / false) if true, a unique number will be added every time flash loads data. Mainly this feature is useful if you set reload _data_interval
animation  [RW] 
background  [RW]  BACKGROUND
balloon  [RW]  BALLOON
csv_separator  [RW] 
(string) csv file data separator (you need it only if you are using csv file for your data)
data_labels  [RW] 
data_type  [RW] 
(xml / csv)
decimals_separator  [RW] 
(string) decimal separator. Note, that this is for displaying data only. Decimals in data xml file must be separated with a dot
digits_after_decimal  [RW] 
(Number) if your value has less digits after decimal then is set here, zeroes will be added
error_messages  [RW]  "error_messages" settings will be applied for all error messages except the one which is showed if settings file wasn‘t found
exclude_invisible  [RW] 
(true / false) whether to exclude invisible slices (where alpha=0) then calculating percent values or not
export_as_image  [RW]  export_as_image feature works only on a web server
font  [RW] 
(font name) use device fonts, such as Arial, Times New Roman, Tahoma, Verdana…
group  [RW] 
labels  [RW]  labels can also be added in data xml file, using exactly the same structure like it is here
legend  [RW]  LEGEND
pie  [RW] 
precision  [RW] 
(Number) shows how many numbers should be shown after comma for calculated values (percents)
preloader_on_reload  [RW] 
(true / false) Whether to show preloaded when data or settings are reloaded
redraw  [RW] 
(true / false) if your chart‘s width or height is set in percents, and redraw is set to true, the chart will be redrawn then screen size changes
reload_data_interval  [RW] 
(Number) how often data should be reloaded (time in seconds)
skip_rows  [RW] 
(Number) if you are using csv data type, you can set the number of rows which should be skipped here
strings  [RW] 
text_color  [RW] 
(hex color code) main text color. Every text color can be set individually in the settings below
text_size  [RW] 
(Number) text size of all texts. Every text size can be set individually in the settings below
thousands_separator  [RW] 
(string) thousand separator