sgvizler.registry Class
Static class for handling functions used for drawing charts, mainpulating datacharts, and what their dependencies are.
Dependencies:
- sgvizler.util
See also:
- sgvizler.charts, sgvizler.datatables (classes for creating new such functions)
- sgvizler.loader (class for loading dependencies)
Item Index
Methods
addFunction
-
module -
name -
type -
dependencies
Add function to registry.
Parameters:
-
moduleStringname of module to which function belongs.
-
nameStringname of function.
-
typeStringof function, usually either
'chart','datatable'. -
dependenciesObjectlist of function name--dependency pairs. Example:
{ 'XYZ': 'http://example.org/XYZ.js' }if the function requires the XYX function to draw and this function is located athttp://example.org/XYZ.js.
chartModules
()
Array
protected
Get list of registered chart module (names), i.e., modules for which there are registered functions for drawing charts.
Returns:
(an array of strings)
Properties
modules
Object
private
Stores the modules of the registered functions
according to the type of function, i.e., chart or
datatable.
registry
Object
private
Stores registered function names and their dependencies, e.g., specifies which google visualization packages to load for the different charts.
Property legend:
t: type. Values:core,datatable,chart(default)d: dependences. Object containing functions--gviz package/js filei: the function itself, as in I.
