anthonygiretti / angular4-googlecharts Goto Github PK
View Code? Open in Web Editor NEWSample of Angular 4 and "Typescriptization" of Google Charts Javascript library
Sample of Angular 4 and "Typescriptization" of Google Charts Javascript library
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
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.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.