Class Index | File Index

Classes


Class charts.GeoChart


Extends charts.BaseChart.

Defined in: GeoChart.js.

Class Summary
Constructor Attributes Constructor Name and Description
 
charts.GeoChart(container)
GeoChart constructor.
Field Summary
Field Attributes Field Name and Description
<inner>  
Country name mapping.
<inner>  
Original svg viewport width: 950px height: 620px.
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.
Methods borrowed from class charts.BaseChart:
drawContent, getDataColumns, getDataRange, getDataRows, getMaxValue, getMinValue, getOptions
Class Detail
charts.GeoChart(container)
GeoChart constructor.
var chart = new charts.GeoChart('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:
charts.GeoLocations
formatters.NumberFormatter
Field Detail
<inner> COUNTRY_MAPPING
Country name mapping. (e.g. usa: United States).

<inner> VIEWPORT
Original svg viewport width: 950px height: 620px. Used for scaling map to different sizes.
Method Detail
draw(data, opt_options)
Draws the chart based on data and opt_options.
Parameters:
{!Array.} data
A chart data.
{Object=} opt_options
A optional chart's configuration options.

Documentation generated by JsDoc Toolkit 2.4.0 on Wed Mar 03 2021 22:29:43 GMT-0800 (PST)