Hi,
I'm trying to setup FusionCharts in my Angular8 project.
So far I've added the following statements in the app.module.ts
[...]
import * as FusionCharts from "fusioncharts";
import * as charts from "fusioncharts/fusioncharts.charts";
import * as FusionTheme from "fusioncharts/themes/fusioncharts.theme.fusion";
import { FusionChartsModule } from "angular-fusioncharts";
FusionChartsModule.fcRoot(FusionCharts, charts, FusionTheme);
@NgModule({declarations: [...], import: ..., FusionChartsModule, [...]})
[..]
As soon as the component is loaded, though, I receive this error
core.js:6014 ERROR TypeError: FusionChartsModules is not a function
at fusioncharts.service.js:50
at Array.forEach (<anonymous>)
at FusionChartsService.push../node_modules/angular-fusioncharts/src/fusioncharts.service.js.FusionChartsService.resolveFusionCharts (fusioncharts.service.js:44)
at new FusionChartsService (fusioncharts.service.js:25)
at createClass (core.js:31987)
at _createProviderInstance$1 (core.js:31963)
at createProviderInstance (core.js:31776)
at createViewNodes (core.js:44195)
at callViewAction (core.js:44660)
at execComponentViewsAction (core.js:44565)
Hi, I'm trying to setup FusionCharts in my Angular8 project. So far I've added the following statements in the app.module.ts
Then, in the HTML component, I define this
And, in its associated TypeScript, this is the following code
As soon as the component is loaded, though, I receive this error
Any idea on how to solve this?