Comments (6)
I seem to have the same issue.
in html: <google-chart [data] = "geoData">
in TS:
private geoData:{
chartType:'geochart',
mapsApiKey: 'xxx',
dataTable:[
['City', 'Population'],
['Melbourne', 456789]
],
options:{
'region':53,
'displayMode':'markers'
}
}
from ng2-google-charts.
Hi, I've created an example of a GeoChart, the API key is not necessary.
see https://embed.plnkr.co/MtGEf8zM7AOaGZKX9aXT/
from ng2-google-charts.
This seems related to google/google-visualization-issues#2292
Apparently an API-KEY is now needed. Unfortunately I am unable to reproduce your problem unless you post some code.
from ng2-google-charts.
Am facing this same issue, how can I get the api key set?
tried this in my index.html but still not working..
<script src="https://www.google.com/jsapi"></script>
<script>
google.load('visualization', '1.0', {
'packages': ['corechart'],
'mapsApiKey': 'your-api-key'
});
</script>
This helped to set the key but am still getting the mapsApiKeyError
google.load('visualization', '1.0', {
'packages': ['corechart'],
'other_params': 'key=your-api-key'
});
console.log(google);
from ng2-google-charts.
Thanks I got it working now without the api keys.
from ng2-google-charts.
For anyone here wondering why the API key warning comes up if they're using their own data but not in the example, make sure your country names match what Google reads them as. If you supply a country name Google doesn't recognize immediately is when the API key error will show. For example, Russia should be 'Russia' not something like 'Russian Federation'.
Hope this helps someone.
from ng2-google-charts.
Related Issues (20)
- 3D support for Bar/Column chart? HOT 1
- chartSelect not emit event when same bar clicked from timeline chart. HOT 1
- Chicken and egg loading issues with Angular 9 + ivy HOT 1
- How to display horizontal bars chart? HOT 1
- Breaks universal ssr when module gets loaded HOT 3
- draw() method on the viewchild. How to use it ? HOT 1
- Not extensible obects HOT 1
- how to convert google chart in pdf format HOT 1
- Number of GoogleChartComponent's are building up on every page with charts reload HOT 3
- How to use mapsApiKey? HOT 1
- object is not iterable (cannot read property Symbol(Symbol.iterator)) on Map HOT 1
- Make this ivy compatible HOT 3
- Compatibility with Angular 10 HOT 1
- [Bug] role: 'style' and role: 'tooltip' not working HOT 1
- ChartType not documented HOT 2
- Upgrade to support Angular 13 HOT 4
- draw error after changing data HOT 1
- Google charts make webapp very slow about graphical rendering HOT 9
- MouseOver and mouseOut don't work with GeoChart type HOT 1
- html tooltips HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from ng2-google-charts.