Class charts.TagChart
Extends
charts.BaseChart.
Defined in: TagChart.js.
| Constructor Attributes | Constructor Name and Description |
|---|---|
|
charts.TagChart(container)
TagChart constructor.
|
- Fields borrowed from class charts.BaseChart:
- container, defaults, tooltip
| Method Attributes | Method Name and Description |
|---|---|
|
draw(data, opt_options)
Draws the chart based on
data and opt_options. |
|
|
drawContent(content, opt_width, opt_height)
Draws content into
this.container as innerHTML. |
- Methods borrowed from class charts.BaseChart:
- getDataColumns, getDataRange, getDataRows, getMaxValue, getMinValue, getOptions
Class Detail
charts.TagChart(container)
TagChart constructor.
var chart = new charts.TagChart('container_id');
chart.draw([['Country', 'Population'],
['Germany', 200],
['USA', 300],
['Brazil', 400],
['Canada', 500],
['France', 600],
['Russia', 700]
]);
- Parameters:
- {string|Element} container
- The HTML container.
- Requires:
- formatters.NumberFormatter
Method Detail
draw(data, opt_options)
Draws the chart based on
data and opt_options.
options: {
'font': {'family': 'Arial'}
}
- Parameters:
-
{!Array.
} data - A chart data.
- {Object=} opt_options
- A optional chart's configuration options.
drawContent(content, opt_width, opt_height)
Draws content into
this.container as innerHTML.
- Parameters:
- {string} content
- SVG or VML markup content.
- {number=} opt_width
- Optional chart width.
- {number=} opt_height
- Optional chart height.