API Docs for: 0.6.0
Show:

sgvizler.defaults Class

Defined in: src/defaults.js:2

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

Methods

getChartOptions

() Object protected

Defined in src/defaults.js:98

Available since 0.6.0

Returns:

Object:

A copy of the chart default options.

getChartSpecificOptions

(
  • chart
)
Object protected

Defined in src/defaults.js:108

Available since 0.6.0

Parameters:

  • chart String

    The function name to retrieve options for, e.g., 'google.visualization.Map'.

Returns:

Object:

A copy of the chart specific default options.

getQueryOptions

() Object protected

Defined in src/defaults.js:88

Available since 0.6.0

Returns:

Object:

A copy of the query default options.

setChartSpecificOption

(
  • chart
  • option
  • value
)
protected

Defined in src/defaults.js:119

Available since 0.6.0

Parameters:

  • chart String

    The function name to set the option for, e.g., 'google.visualization.Map'.

  • option String

    The name of the option to set.

  • value String

    The value to set.

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

Defined in src/defaults.js:75

Available since 0.6.0

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

Defined in src/defaults.js:62

Available since 0.6.0

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.