Where communities thrive


  • Join over 1.5M+ people
  • Join over 100K+ communities
  • Free without limits
  • Create your own community
People
Repo info
Activity
  • Jan 20 12:34
    ajaiswal595 edited #353
  • Jan 20 12:27
    ajaiswal595 edited #353
  • Jan 20 12:26
    ajaiswal595 edited #353
  • Jan 20 12:26
    ajaiswal595 opened #353
  • Jun 23 2021 19:10
    nbering commented #352
  • Jun 23 2021 16:08
    carlzbg-cyber commented #352
  • Jun 23 2021 15:21
    nbering commented #352
  • Jun 23 2021 15:20
    nbering commented #352
  • Jun 22 2021 13:48
    carlzbg-cyber commented #352
  • Jun 22 2021 13:00
    mmkopp commented #352
  • Jun 22 2021 10:30
    carlzbg-cyber commented #352
  • Jun 22 2021 10:22
    mmkopp commented #352
  • Jun 22 2021 09:06
    carlzbg-cyber opened #352
  • Dec 29 2020 18:35
    nbering commented #351
  • Dec 28 2020 16:50
    stvno opened #351
  • Sep 21 2020 16:36
    nbering closed #350
  • Sep 21 2020 16:36
    nbering commented #350
  • Sep 17 2020 15:44
    nbering labeled #350
  • Sep 15 2020 15:28
    nbering commented #350
  • Sep 15 2020 15:21
    nbering labeled #350
KranthiVallamreddy
@KranthiVallamreddy
Thank you for the insight.
mriganksinha
@mriganksinha
Hi.... I hope if someone can help
I am trying to fetch google chart from my angularjs6 code
but can't really get it
Nicholas Bering
@nbering
This library in particular only supports AngularJS 1.x. I haven’t had a need to write front-end code since Angular 2 was released so I can’t recommend a replacement library, but I know some exist.
haricet
@haricet
hi i am trying to call angular-google-chart directive from another directive.Chart working fine but legend aligenment is missedup. hope anyone help me in this
Nicholas Bering
@nbering
@haricet Can you be more specific? A link to a codepen or jsfiddle helps a lot.
Juan Let
@juanlet
I updated to rxjs, I need to start a timer in a service and subscribe from 2 different components, any way of doing this since it's not documented?
Nicholas Bering
@nbering
That sounds off-topic, and I’ve never used rxjs so I have no help to offer. Sorry.
If you’re still talking Angular 1.x though... sharing anything between two controllers would suggest the need for a service.
Juan Let
@juanlet
I'm using angular 2
ooohh
I thoutght this was angular 2 channel
sorry
Sagar Jadhav
@sagarjadhav968
Nicholas Bering
@nbering
@sagarjadhav968 Thanks! Whenever I get around to updating the docs to explicitly say the library is AngularJS 1.x only, I may link to that as an alternative.
Their docs are much nicer than mine.
Farrah
@Locinine
Hi, hoping this is an ok question to ask. Is it possible to make a segment of the chart transparent without a css hack? What im trying to achieve is a pie chart with a segment taken out.
Nicholas Bering
@nbering
@Locinine I believe this is what you’re looking for? https://developers.google.com/chart/interactive/docs/gallery/piechart#removing-slices
Farrah
@Locinine
Yep thank you.
mukunda saini
@mukundasaini
how googleJsapiUrlProvider is work. why should we use this provider
SRICHANDANCHINNAM
@SRICHANDANCHINNAM
Hello, I would like to implement histogram graph in angular6.... Can anyone please help me out.... I can't go forward.....
Nicholas Bering
@nbering
@SRICHANDANCHINNAM The library this channel is for doesn’t support Angular 6. Just AngularJS 1.x.
@mukundasaini Apologies for the late reply. jsapi is the old loader for the Google Chart’s library. It loads from google.com/jsapi. The Google team created a new loader at gstatic.com and is the new standard. I kept support for both when I added the gstatic loader for various compatibility reasons.
Shane Barry
@Shane325
@nbering I'm getting an unknown provider error when I inject 'agcLibraryLoaderProvider' as a dependency. Is this common?
Nicholas Bering
@nbering
@Shane325 Would you like to open a GitHub issue with an example of how you are trying to use it?
Shane Barry
@Shane325
@nbering angular-google-chart/angular-google-chart#336
I have a GeoChart that needs a google api key to work. Hence the need for the LoaderProviders. If theres a way for me to load an mapApiKey without these providers please let me know. Thanks.
Nicholas Bering
@nbering
You do need that. It’s the main reason I took time to implement the feature. I’m setting up a codepen to test my own assumptions. It’s been a while since I did any work with the project.
I’ll get back to you shortly with a live example or a report on my own bug as the case may be. You should hear from me within the day at the latest. Working on it between questions from my work team.
I am certain I had it working for that use case when I built the feature.
Shane Barry
@Shane325
Ok. Sounds good. Thanks.
Shane Barry
@Shane325
@nbering Update. When I load the library over CDN it works. I would prefer to load it through npm.
Nicholas Bering
@nbering
Here's a working sample, with an active API Key scoped to that codepen. https://codepen.io/nbering/pen/KBgmPd
As to why it would work with CDN and not NPM... that's weird.
It looks like the minified version in the npm package might be wrong.
Nicholas Bering
@nbering
The checksums for CDN and NPM match for the unminified version, but not the minified versions.
Nicholas Bering
@nbering
$ cat ng-google-chart.min.js | md5
2cac6cd9041d2f1b791bf334314be73e
$ curl https://cdnjs.cloudflare.com/ajax/libs/angular-google-chart/1.0.0-beta.1/ng-google-chart.min.js | md5
6fca7703290e7ad370f9e184f355cd4c
$ cat ng-google-chart.js | md5
c02974763a7c42a11bae50fc3d357205
$ curl https://cdnjs.cloudflare.com/ajax/libs/angular-google-chart/1.0.0-beta.1/ng-google-chart.js | md5
c02974763a7c42a11bae50fc3d357205
Not sure how I ended up with that....
Try with the unminified version. I'll try to get an updated NPM version up later. I'll probably make gstatic the default as well.
Shane Barry
@Shane325
Thank you for the quick and thorough follow up. It is fixed now, the issue was with my webpack config. It was an oversight on my end!
I have closed the issue on github
Nicholas Bering
@nbering
No problem. Glad we got it resolved.
psyogi
@psyogi
Hi, how can I use the static google apis's like visualization.DataTable() in my controller functions ? when I try to invoke google.visualization.DataTable(), it says google is not defined
There's a service that returns a promise. You can wait for that promise to resolve before using the APIs directly.
psyogi
@psyogi
ok. I will try to use it like this . thank you Nicholas!
Nicholas Bering
@nbering
That promise also returns the google namespace object, which is handy for mocking. Just stub the methods you're going to use and override the service.
psyogi
@psyogi
It worked! solved my problem. Thanks a lot!
Nicholas Bering
@nbering
No problem at all.