Closed swarooppallapothu closed 6 years ago
Hi @swarooppallapothu,
The problem is arised because of using forRoot()
method, use fcRoot()
method instead of forRoot()
in app.module.ts
file as follows:
src/app/app.module.ts
:
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import * as FusionCharts from 'fusioncharts';
import * as Charts from 'fusioncharts/fusioncharts.charts';
import * as Widgets from 'fusioncharts/fusioncharts.widgets';
import * as FintTheme from 'fusioncharts/themes/fusioncharts.theme.fint';
import { AppComponent } from './app.component';
import { FusionChartsModule } from 'angular4-fusioncharts';
FusionChartsModule.fcRoot(FusionCharts, Charts, Widgets, FintTheme);
@NgModule({
declarations: [
AppComponent
],
imports: [
BrowserModule,
FusionChartsModule
],
providers: [],
bootstrap: [AppComponent]
})
export class AppModule { }
@rousan, Thanks for your file. I follow below link to implement. So please update there also
@swarooppallapothu, Thank you for your valuable feedback, we will update that soon.
I have issue after building my app.
angular4-fusioncharts working perfect in dev. Able to build with out any error. But, when i run output scripts of build on http-server it is giving error. Please check below image for error i am getting and my poc application.
Command using to build: ng build --prod
Below is my package.json
fusion-guage-chart.zip