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

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

Included Modules

Base

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

Constants

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]

Attributes

add_time_stamp  [RW] 
false
(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
(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] 
false
(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] 
Arial
(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] 
2
(Number) shows how many numbers should be shown after comma for calculated values (percents)
preloader_on_reload  [RW] 
false
(true / false) Whether to show preloaded when data or settings are reloaded
redraw  [RW] 
false
(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] 
0
(Number) how often data should be reloaded (time in seconds)
skip_rows  [RW] 
0
(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] 
000000
(hex color code) main text color. Every text color can be set individually in the settings below
text_size  [RW] 
11
(Number) text size of all texts. Every text size can be set individually in the settings below
thousands_separator  [RW] 
(string) thousand separator

[Validate]