Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to integrate angular2-google-chart with angular-cli? #9

Open
devrockzz opened this issue Aug 18, 2016 · 6 comments
Open

How to integrate angular2-google-chart with angular-cli? #9

devrockzz opened this issue Aug 18, 2016 · 6 comments

Comments

@devrockzz
Copy link

Please kindly guild me how i can integrate it with angular-cli as i am trying but its not working . So please give me the proper steps how i can integrate it with angular cli

@manish153
Copy link

I would like to know this as well. It will be helpful for greater adoption.

@RicardoVaranda
Copy link

RicardoVaranda commented Sep 13, 2016

@devrockzz @manish153 I've made a tutorial here on how you guys can achieve this.

https://github.com/RicardoVaranda/Angular2-Google-Charts

All credits go to @vimalavinisha

@BenDevelopment
Copy link

Thank you for this tutorial. I figured out that your are loading that chart api each time in the diretive. It makes the chart display very slow. Maybe we can upgrade this script.

@sup99
Copy link

sup99 commented Feb 16, 2017

Hi guys and thanks for the tutorial ! Yes. I noticed the poor performance and it was a no-go for me, but the chart supports 2 graphics that I needed so I had no choice to try to make it work better.
I simply did this:

  1. I just called this.drawGraph() on the chart component (i especially skipped loading the package)
  2. On the index page, right after including the chart script, I only called once the following line google.charts.load('current', { 'packages': ['line'] });

I only needed to draw a couple of line charts, so I grabbed the minimum and it works blazing fast now.
I hope this helps someone, cheers !

@sudthenerd
Copy link

@RicardoVaranda: Thanks a lot.

  1. thing i want to ask, that how to show location on hover of grey section.

@ariklu
Copy link

ariklu commented Mar 7, 2018

@sup99 could you please allaborate on step 1. in your answer.
you call "this.drawGraph() on the chart component" ? -in angular component.ts file
where is "loading the package" that you skip?

I really need this fix, but I just do not understand what to do

Thank you in advance

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants