Class Index | File Index

Classes


Class charts.DonutChart


Extends charts.PieChart.

Defined in: DonutChart.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
charts.DonutChart(container)
DonutChart constructor.
Fields borrowed from class charts.BaseChart:
container, defaults, tooltip
Method Summary
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.DonutChart(container)
DonutChart constructor.
var chart = new charts.DonutChart('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.
Requires:
formatters.NumberFormatter
Method Detail
draw(data, opt_options)
Draws the chart based on data and opt_options.
options: {
  'donut': {'color': '#fff', 'radius': 0.5}
}
Parameters:
{!Array.} data
A chart data.
{Object=} opt_options
A optional chart's configuration options.
See:
charts.PieChart#draw
charts.BaseChart#getOptions

{string} getAreaContent()
Gets circle area content.
Returns:
{string} Returns circle area content.

Documentation generated by JsDoc Toolkit 2.4.0 on Tue Jun 14 2016 23:17:05 GMT+0300 (EEST)