GithubHelp home page GithubHelp logo

anthonygiretti / angular4-googlecharts Goto Github PK

View Code? Open in Web Editor NEW
18.0 18.0 8.0 29 KB

Sample of Angular 4 and "Typescriptization" of Google Charts Javascript library

TypeScript 72.44% JavaScript 9.89% HTML 10.64% CSS 7.04%

angular4-googlecharts's People

Contributors

anthonygiretti avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

angular4-googlecharts's Issues

Error in DataTableModule is not an NgModule

First of all, thank you very much for your work on google charts for Angular, awesome job, I have an issue though, when I run the ng serve command, things (JSs) seem to be rendered but at the end I get the following error:
Error in DataTableModule is not an NgModule
webpack: Failed to compile.

I haven't done any changes, I just downloaded your project, ran a "npm install", but when trying ng serve, this error comes.

So I fixed this by moving the NgModule import in the application module to the top, that fixed it.

Your model and async

I have no problem using your model to generate various charts such as gauges, if I define the data within a function not called within an asynchronous call-back. But I need to load down my data from a server and after the result is returned (async model), I then load the values. But when I load the data after an async promise is resolved, I get a message that my data values are not defined, from the chart service.ts file.

Any ideas on why the values are not being received by the service if I set them within the .then() callback after loading down data?

If I just call a function from my constructor to load the chart data with values, it all works fine.

Kirk

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.