angular-google-charts
Version:
A wrapper of the Google Charts library written with Angular 6
52 lines (36 loc) • 945 B
Markdown
> A wrapper of the Google Charts library written for Angular 6 & 7
Import the `GoogleChartsModule` in your `app.module.ts`:
```typescript
import { GoogleChartsModule } from 'angular-google-charts';
@NgModule({
...
imports: [
...
GoogleChartsModule.forRoot(),
...
],
...
})
export class AppModule {}
```
And create a `google-chart` component somewhere in your application:
```html
<google-chart
[]="chart.title"
[]="chart.type"
[]="chart.data"
[]="chart.columnNames"
[]="chart.options">
</google-chart>
```
With [npm](https://npmjs.org/) installed, run
```
$ npm install angular-google-charts
```
For more detailed instructions, a big readme and the source code please go to [GitHub](https://github.com/FERNman/angular-google-charts).
MIT