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

value or explanation between () brackets shows the range or type of values you should use for this parameter

Included Modules


Classes and Modules

Class Ambling::Line::Settings::Axes
Class Ambling::Line::Settings::Background
Class Ambling::Line::Settings::ErrorMessages
Class Ambling::Line::Settings::ExportAsImage
Class Ambling::Line::Settings::Graphs
Class Ambling::Line::Settings::Grid
Class Ambling::Line::Settings::Help
Class Ambling::Line::Settings::Indicator
Class Ambling::Line::Settings::Labels
Class Ambling::Line::Settings::Legend
Class Ambling::Line::Settings::PlotArea
Class Ambling::Line::Settings::Scroller
Class Ambling::Line::Settings::Strings
Class Ambling::Line::Settings::Values
Class Ambling::Line::Settings::ZoomOutButton


VALUES = [:data_type,:type,:csv_separator,:skip_rows,:font,:text_size,:text_color,:decimals_separator,:thousands_separator,:digits_after_decimal,:redraw,:reload_data_interval,:preloader_on_reload,:add_time_stamp,:precision,:connect,:hide_bullets_count,:link_target,:start_on_axis,:background,:plot_area,:scroller,:grid,:values,:axes,:indicator,:legend,:zoom_out_button,:help,:export_as_image,:error_messages,:strings,:labels,:graphs]


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 >0
axes  [RW]  axes
background  [RW]  BACKGROUND
connect  [RW] 
(true / false) whether to connect points if y data is missing
csv_separator  [RW] 
(string) csv file data separator (you need it only if you are using csv file for your data)
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 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
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…
graphs  [RW]  if graph settings are defined both here and in data file, the ones from data file are used
grid  [RW]  GRID
help  [RW]  HELP button and balloon
hide_bullets_count  [RW] 
(Number) if there are more then hideBulletsCount points on the screen, bullets can be hidden, to avoid mess. Leave empty, or 0 to show bullets all the time. This rule doesn‘t influence if custom bullet is defined near y value, in data file
indicator  [RW]  INDICATOR
labels  [RW]  labels can also be added in data xml file, using exactly the same structure like it is here
legend  [RW]  LEGEND
link_target  [RW] 
(_blank, _top …)
plot_area  [RW]  PLOT AREA (the area between axes)
precision  [RW] 
(Number) shows how many numbers should be shown after comma for calculated values (percents, used only in stacked charts)
preloader_on_reload  [RW] 
(true / false) Whether to show preloaded when data or settings are reloaded
redraw  [RW]  Legend, buttons labels will not be repositioned if you set your x and y values for these objects
reload_data_interval  [RW] 
(Number) how often data should be reloaded (time in seconds) If you are using this feature I strongly recommend to turn off zoom function (set <zoomable>false</zoomable>)
scroller  [RW] 
skip_rows  [RW] 
(Number) if you are using csv data type, you can set the number of rows which should be skipped here
start_on_axis  [RW] 
(true / false) if set to false, graph is moved 1/2 of one series interval from Y axis
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
type  [RW] 
(line, stacked, 100% stacked)
values  [RW]  VALUES
zoom_out_button  [RW]