Giter Club home page Giter Club logo

Comments (6)

RicardoVaranda avatar RicardoVaranda commented on June 25, 2024 3

@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

from angular2-google-chart.

manish153 avatar manish153 commented on June 25, 2024

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

from angular2-google-chart.

BenDevelopment avatar BenDevelopment commented on June 25, 2024

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.

from angular2-google-chart.

sup99 avatar sup99 commented on June 25, 2024

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 !

from angular2-google-chart.

sudthenerd avatar sudthenerd commented on June 25, 2024

@RicardoVaranda: Thanks a lot.

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

from angular2-google-chart.

ariklu avatar ariklu commented on June 25, 2024

@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

from angular2-google-chart.

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.