sgvizler.defaults Class
A set of default values used mostly, if not only, by the sgvizler.Query class. These values may be get and set by the get-setters of the sgvizler class.
Dependencies:
- sgvizler.registry
Item Index
Methods
getChartSpecificOptions
-
chart
Parameters:
-
chart
StringThe function name to retrieve options for, e.g.,
'google.visualization.Map'
.
Returns:
A copy of the chart specific default options.
setChartSpecificOption
-
chart
-
option
-
value
Parameters:
Example:
setChartSpecificOption('google.visualization.Map', 'dataMode', 'markers');
sets the 'dataMode'
option for the
'google.visualization.Map'
function to the value
'markers'
.
Properties
chart
Object
protected
Collects chart option default values. Should only be
used if you want to edit this values persistently
(passed by reference). If you want a copy of these
values, use method getChartOptions
.
query
Object
protected
Collects query option default values. Should only be
used if you want to edit this values persistently
(passed by reference). If you want a copy of these
values, use method getQueryOptions
.