Giter VIP home page Giter VIP logo

Comments (6)

yhedaoo avatar yhedaoo commented on May 14, 2024 2

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.

felipecespedes avatar felipecespedes commented on May 14, 2024 2

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.

gmazzamuto avatar gmazzamuto commented on May 14, 2024

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.

winni4eva avatar winni4eva commented on May 14, 2024

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.

winni4eva avatar winni4eva commented on May 14, 2024

Thanks I got it working now without the api keys.

from ng2-google-charts.

ewwwgiddings avatar ewwwgiddings commented on May 14, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.