ng8-google-chart

A wrapper of the Google Charts library written with Angular 6

Usage no npm install needed!

<script type="module">
  import ng8GoogleChart from 'https://cdn.skypack.dev/ng8-google-chart';
</script>

README

ng8-google-chart

A wrapper of the Google Charts library written for Angular 6 & 7

Usage

Import the GoogleChartsModule in your app.module.ts:

import { GoogleChartsModule } from 'ng8-google-chart';

@NgModule({
  ...
  imports: [
    ...
    GoogleChartsModule.forRoot(),
    ...
  ],
  ...
})
export class AppModule {}

And create a google-chart component somewhere in your application:

<google-chart
  [title]="chart.title"
  [type]="chart.type"
  [data]="chart.data"
  [columnNames]="chart.columnNames"
  [options]="chart.options">
</google-chart>

Install

With npm installed, run

$ npm install ng8-google-chart

Detailed Instructions

For more detailed instructions, a big readme and the source code please go to GitHub.

License

MIT