Google Geo Chart
Official documentation
For more detailed information and examples, see the official documentation: Google Geo Chart documentation.
How to use?
Copy-paste the following <script>
near the end of your pages under JS Implementing Plugins to enable it.
Copy-paste the following <script>
near the end of your pages under JS Nova to enable it.
Copy-paste the init function under JS Plugins Init., before the closing </body>
tag, to enable it.
Methods
Options can be passed via data attributes or JavaScript. For data attributes, append the option name to data-
, as in data-api-key=""
.
Attribute | Description |
---|---|
data-api-key |
An API key to generate in the developer.console google account. |
data-data |
The first element of the array contains 2 elements Country (includes the display mode of countries) and Statistics (any arbitrary name, instead of Statistics you can Population or any other). |