angular4-fusioncharts icon indicating copy to clipboard operation
angular4-fusioncharts copied to clipboard

Chart type not Supported

Open vishals9711 opened this issue 7 years ago • 3 comments

Any PowerXT chart is not supported. I Have imported the powerChartXT library also. still, there is a problem with the chart

vishals9711 avatar Jul 26 '18 19:07 vishals9711

Hi, You need to import the powerchart module and finally pass the dependency inside FusionCharts fc module, please check the sample for reference - https://plnkr.co/edit/6jBU7BwzE0kyiXTyxy0u?p=preview

ayanbhaduryfc avatar Jul 30 '18 05:07 ayanbhaduryfc

I have imported the following; //Charts import * as FusionCharts from 'fusioncharts'; import * as Charts from 'fusioncharts/fusioncharts.charts'; import * as FintTheme from 'fusioncharts/themes/fusioncharts.theme.fint'; import { FusionChartsModule } from 'angular4-fusioncharts'; import * as powerCharts from 'fusioncharts/fusioncharts.powercharts';

import * as OceanTheme from 'fusioncharts/themes/fusioncharts.theme.ocean';

FusionChartsModule.fcRoot(FusionCharts,powerCharts, Charts, FintTheme,OceanTheme);``

and my HTML page contains

<fusioncharts [width]="width" [height]="height" [type]='mssplinearea' [dataFormat]="dataFormat" [dataSource]="datasource">

Still, the webpage shows chart not supported also i have imported the script files in the HTML files

vishals9711 avatar Jul 30 '18 16:07 vishals9711

Hi,

Please maintain the order to render a power chart you need to include fusioncharts, after that fusionchart.powercharts, then include the files, for rendering power charts fusioncharts.charts.js does not require, for reference please check the snippet below

import * as FusionCharts from 'fusioncharts'; import * as powercharts from 'fusioncharts/fusioncharts.powercharts'; import { FusionChartsModule } from 'angular4-fusioncharts'; import { AppComponent } from './app.component';

FusionChartsModule.fcRoot(FusionCharts, powercharts);

ayanbhaduryfc avatar Jul 31 '18 05:07 ayanbhaduryfc