@qrsln/google-charts-angular
TypeScript icon, indicating that this package has built-in type declarations

24.8.9-beta.3 • Public • Published

GoogleChartsAngular

Support npm npm

A wrapper for the Google Charts library written in Angular.

Demo GitHub top language

Install

With npm installed, run

npm install @qrsln/GoogleChartsAngular

Usage

Import the GoogleChartsModule in your app.module.ts:

import { GoogleChartsModule } from 'angular-google-charts';

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

OR

Import the provideGoogleCharts in your app.config.ts:

import {provideGoogleCharts} from "@qrsln/google-charts-angular";

export const appConfig: ApplicationConfig = {
  providers: [
    // ...
    provideGoogleCharts({
      version: 'current',
      safeMode: true,
      mapsApiKey: 'your-api-key'
    }),
  ]
};

And create a GoogleChart component somewhere in your application:

<GoogleChart
  [title]="chart.title"
  [type]="chart.type"
  [data]="chart.data"
  [columns]="chart.columns"
  [options]="chart.options"
>
</GoogleChart>

Detailed Instructions

Find the full readme at GitHub.

License

MIT

Package Sidebar

Install

npm i @qrsln/google-charts-angular

Weekly Downloads

2

Version

24.8.9-beta.3

License

MIT

Unpacked Size

314 kB

Total Files

44

Last publish

Collaborators

  • krsln