Class charts.Grid
Defined in: Grid.js.
Constructor Attributes | Constructor Name and Description |
---|---|
charts.Grid(container)
Grid Constructor.
|
Field Attributes | Field Name and Description |
---|---|
<static> |
charts.Grid.DIRECTION
Enum of grid direction.
|
Method Attributes | Method Name and Description |
---|---|
draw(opt_options)
Draws chart grid.
|
|
getOptions(opt_options)
Gets grid options merged with defaults grid options.
|
Class Detail
charts.Grid(container)
Grid Constructor.
- Parameters:
- {string|Element} container
- The HTML container.
- Requires:
- formatters.NumberFormatter
Field Detail
<static>
charts.Grid.DIRECTION
Enum of grid direction.
{ LEFT_TO_RIGHT, RIGHT_TO_LEFT, BOTTOM_TO_TOP, TOP_TO_BOTTOM }
Method Detail
draw(opt_options)
Draws chart grid.
- Parameters:
- {Object=} opt_options
- A optional grid configuration options.
{!Object.}
getOptions(opt_options)
Gets grid options merged with defaults grid options.
options: { 'grid': {border': 1, 'color': '#ccc', 'lines': 5}, 'font': {'size': 11, 'family': 'Arial'}, 'hAxis': true, 'vAxis': true }
- Parameters:
- {Object=} opt_options
- A optional grid configuration options.
- Returns:
- {!Object.
} A map of name/value pairs.