Class charts.HoopChart
Extends
charts.DonutChart.
Defined in: HoopChart.js.
Constructor Attributes | Constructor Name and Description |
---|---|
charts.HoopChart(container)
HoopChart 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 . |
|
Gets circle area content.
|
- Methods borrowed from class charts.BaseChart:
- drawContent, getDataColumns, getDataRange, getDataRows, getMaxValue, getMinValue, getOptions
Class Detail
charts.HoopChart(container)
HoopChart constructor.
var chart = new charts.HoopChart('container_id'); chart.draw([['Work', 'Eat', 'Commute', 'Watch TV', 'Sleep'], [100, 50, 30, 10, 40], [140, 2, 110, 150, 1300]]);
- Parameters:
- {string|Element} container
- The HTML container.
Method Detail
draw(data, opt_options)
Draws the chart based on
data
and opt_options
.
options: { 'hoop': {'radius': 0.85} 'animation': {'radius': 1} }
- Parameters:
-
{!Array.
} data - A chart data.
- {Object=} opt_options
- A optional chart's configuration options.
{string}
getAreaContent()
Gets circle area content.
- Returns:
- {string} Returns circle area content.