how to add this chart: https://developers.google.com/chart/interactive/docs/gallery/gauge on my project
Have you searched the forum yet for how to implement Google Charts in Ionic projects?
I used this https://www.npmjs.com/package/angular2-google-chart
but give me error ; Uncaught TypeError: (void 0) is not a function
app.module.ts;
import { NgModule, ErrorHandler } from '@angular/core';
import { BrowserModule } from '@angular/platform-browser';
import { IonicApp, IonicModule, IonicErrorHandler } from 'ionic-angular';
import { MyApp } from './app.component';
import { StatusBar } from '@ionic-native/status-bar';
import { SplashScreen } from '@ionic-native/splash-screen';
import { DbProvider } from '../providers/db/db';
import { IonicStorageModule } from '@ionic/storage';
import { HttpModule } from '@angular/http';
import { SQLitePorter } from '@ionic-native/sqlite-porter';
import { SQLite } from '@ionic-native/sqlite';
import { TaskServiceProvider } from '../providers/task-service/task-service'
import { ChartModule } from 'angular2-highcharts';
import * as highcharts from 'Highcharts';
import {GoogleChart} from 'angular2-google-chart/directives/angular2-google-chart.directive';
@NgModule({
declarations: [
MyApp,
KanalolusturPage,
KanalPage,
TabsPage,
GetlerPage,
PostlarPage,
UyelikPage,
ElementolusturPage,
VerilerPage,
GoogleChart
],
imports: [
BrowserModule,
HttpModule,
IonicModule.forRoot(MyApp),
IonicStorageModule.forRoot(),
ChartModule.forRoot(highcharts)
],
bootstrap: [IonicApp],
entryComponents: [
MyApp,
KanalolusturPage,
KanalPage,
TabsPage,
GetlerPage,
PostlarPage,
UyelikPage,
ElementolusturPage,
VerilerPage,
],
providers: [
StatusBar,
SplashScreen,
{provide: ErrorHandler, useClass: IonicErrorHandler},
DbProvider,
DbProvider,
SQLitePorter,
SQLite,
TaskServiceProvider
]
})
export class AppModule {}
What code exactly is giving you this error?
@NgModule({
declarations: [
MyApp,
KanalolusturPage,
KanalPage,
TabsPage,
GetlerPage,
PostlarPage,
UyelikPage,
ElementolusturPage,
VerilerPage,
GoogleChart // i think this
[/quote]
As you created a new topic Ionic google charts error: (void 0) is not a function I will close this.