Giter VIP home page Giter VIP logo

fusioncharts / angular-fusioncharts Goto Github PK

View Code? Open in Web Editor NEW
55.0 55.0 36.0 8.99 MB

Angular Component for FusionCharts JavaScript Charting Library

Home Page: https://fusioncharts.github.io/angular-fusioncharts/#/ex1

License: Other

TypeScript 70.63% JavaScript 8.11% CSS 6.15% HTML 15.11%
angular angular-fusioncharts angular-fusioncharts-component charts dashboards data-stories data-visualization dataviz fusioncharts fusionmaps fusionwidgets graphs interactive-charts javascript-charts js-charts powercharts visualization

angular-fusioncharts's Introduction

angular-fusioncharts

A simple and lightweight official Angular component for FusionCharts JavaScript charting library. angular-fusioncharts enables you to add JavaScript charts in your Angular application without any hassle.

With the latest version of [email protected], we are now supporting Angular 17 applications as well which were not supported till [email protected] The angular-fusioncharts 4.1.0 can be used with all the versions of FusionCharts till the v3.23.0.


Table of Contents

Getting Started

Requirements

  • Node.js, NPM/Yarn installed globally in your OS.
  • You've an Angular Application.
  • FusionCharts installed in your project, as detailed below:

Installation

To install angular-fusioncharts library, run:

$ npm install angular-fusioncharts --save

To install fusioncharts library:

$ npm install fusioncharts --save

Quick Start

Here is a basic sample that shows how to create a chart using angular-fusioncharts:

Add this in your Angular AppModule:

import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';

import { AppComponent } from './app.component';

// Import angular-fusioncharts
import { FusionChartsModule } from 'angular-fusioncharts';

// Import FusionCharts library and chart modules
import * as FusionCharts from 'fusioncharts';
import * as Charts from 'fusioncharts/fusioncharts.charts';

// For Powercharts , Widgets, and Maps
// import * as PowerCharts from 'fusioncharts/fusioncharts.powercharts';
// import * as Widgets from 'fusioncharts/fusioncharts.widgets';
// import * as Maps from 'fusioncharts/fusioncharts.maps';
// To know more about suites,
// read this https://www.fusioncharts.com/dev/getting-started/plain-javascript/install-using-plain-javascript

// For Map definition files
// import * as World from 'fusioncharts/maps/fusioncharts.world';

import * as FusionTheme from 'fusioncharts/themes/fusioncharts.theme.fusion';

// Pass the fusioncharts library and chart modules
FusionChartsModule.fcRoot(FusionCharts, Charts, FusionTheme);

@NgModule({
  declarations: [AppComponent],
  imports: [
    BrowserModule,
    // Specify FusionChartsModule as import
    FusionChartsModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule {}

Once the library is imported, you can use its components, directives in your Angular application:

In your Angular AppComponent:

import { Component } from '@angular/core';

@Component({
  selector: 'my-app',
  templateUrl: './app.component.html'
})
export class AppComponent {
  dataSource: Object;
  title: string;

  constructor() {
    this.title = 'Angular  FusionCharts Sample';

    this.dataSource = {
      chart: {
        caption: 'Countries With Most Oil Reserves [2017-18]',
        subCaption: 'In MMbbl = One Million barrels',
        xAxisName: 'Country',
        yAxisName: 'Reserves (MMbbl)',
        numberSuffix: 'K',
        theme: 'fusion'
      },
      data: [
        { label: 'Venezuela', value: '290' },
        { label: 'Saudi', value: '260' },
        { label: 'Canada', value: '180' },
        { label: 'Iran', value: '140' },
        { label: 'Russia', value: '115' },
        { label: 'UAE', value: '100' },
        { label: 'US', value: '30' },
        { label: 'China', value: '30' }
      ]
    };
  }
}
<!-- You can now use fusioncharts component in app.component.html -->
<h1>
  {{title}}
</h1>
<fusioncharts
    width="600"
    height="350"
    type="Column2D"
    dataFormat="JSON"
    [dataSource]="dataSource"
></fusioncharts>

Working with Events

Fusincharts events can be subscribed from component's output params.
Usage in template :

<fusioncharts
  width="600"
  height="350"
  type="Column2D"
  dataFormat="json"
  [dataSource]="dataSource"
  (dataplotRollOver)="plotRollOver($event)">
</fusioncharts>

And in component's code , $event will be an object { eventObj : {...}, dataObj: {...} }
For more on this read here

import {Component} from '@angular/core';

@Component({
  selector: 'my-app',
  templateUrl: './app.component.html'
})
export class AppComponent {
  dataSource: Object;
  title: string;

  constructor() {
    this.title = "Angular  FusionCharts Sample";

    this.dataSource = {
      ...// same data as above
    };
  }



  plotRollOver($event){
    var dataValue = $event.dataObj.dataValue;
    console.log(`Value is ${dataValue}`);
  }

}

Get the list of fusioncharts' events

Working with APIs

Using api of charts involves getting the FusionCharts chart instance from the initialized event. It emits chart object which can be operated upon later.

In template, we add initialized event

<fusioncharts
  type="column2d"
  width="100%"
  height="400"
  dataFormat="json"
  [dataSource]="dataSource"
  (initialized)="initialized($event)">
</fusioncharts>
<button (click)="changeLabel()">Change label</button>

And in component's code , we get $event as { chart : ChartInstance }

So in order to use the chart instance , we need to store the chart instance.

import {Component} from '@angular/core';

@Component({
  selector: 'my-app',
  templateUrl: './app.component.html'
})
export class AppComponent {
  dataSource: Object;
  title: string;
  chart: any;
  constructor() {
    this.title = "Angular  FusionCharts Sample";

    this.dataSource = {
      ...// same data as above
    };
  }

  initialized($event){
    this.chart = $event.chart; // Storing the chart instance
  }

  changeLabel(){
    this.chart.setChartAttribute('caption', 'Changed caption');
  }

}

Usage and integration of FusionTime

From [email protected] and [email protected], You can visualize timeseries data easily with angular.

Learn more about FusionTime here.

Setup for FusionTime

// app.module.ts
import { BrowserModule } from '@angular/platform-browser';
import { NgModule } from '@angular/core';
import { AppComponent } from './app.component';
// Import angular-fusioncharts
import { FusionChartsModule } from 'angular-fusioncharts';
// Import FusionCharts library and chart modules
import * as FusionCharts from 'fusioncharts';
import * as Charts from 'fusioncharts/fusioncharts.charts';
import * as TimeSeries from 'fusioncharts/fusioncharts.timeseries'; // Import timeseries
// Pass the fusioncharts library and chart modules
FusionChartsModule.fcRoot(FusionCharts, Charts, TimeSeries);
@NgModule({
  declarations: [AppComponent],
  imports: [
    BrowserModule,
    // Specify FusionChartsModule as import
    FusionChartsModule
  ],
  providers: [],
  bootstrap: [AppComponent]
})
export class AppModule {}

Component code

// In app.component.ts
import { Component } from '@angular/core';
import * as FusionCharts from 'fusioncharts';
const dataUrl =
  'https://raw.githubusercontent.com/fusioncharts/dev_centre_docs/fusiontime-beta-release/charts-resources/fusiontime/online-sales-single-series/data.json';
const schemaUrl =
  'https://raw.githubusercontent.com/fusioncharts/dev_centre_docs/fusiontime-beta-release/charts-resources/fusiontime/online-sales-single-series/schema.json';
@Component({
  selector: 'app',
  templateUrl: './app.component.html'
})
export class AppComponent {
  dataSource: any;
  type: string;
  width: string;
  height: string;
  constructor() {
    this.type = 'timeseries';
    this.width = '400';
    this.height = '400';
    this.dataSource = {
      data: null,
      yAxis: {
        plot: [{ value: 'Sales' }]
      },
      caption: {
        text: 'Online Sales of a SuperStore in the US'
      }
    };
    this.fetchData();
  }
  fetchData() {
    let jsonify = res => res.json();
    let dataFetch = fetch(dataUrl).then(jsonify);
    let schemaFetch = fetch(schemaUrl).then(jsonify);
    Promise.all([dataFetch, schemaFetch]).then(res => {
      let data = res[0];
      let schema = res[1];
      let fusionTable = new FusionCharts.DataStore().createDataTable(
        data,
        schema
      ); // Instance of DataTable to be passed as data in dataSource
      this.dataSource.data = fusionTable;
    });
  }
}

Template Code

<div>
  <fusioncharts
    [type]="type"
    [width]="width"
    [height]="height"
    [dataSource]="dataSource"
  ></fusioncharts>
</div>

Useful links for FusionTime

For Contributors

  • Clone the repository and install dependencies
$ git clone https://github.com/fusioncharts/angular-fusioncharts.git
$ cd angular-component
$ npm i
$ npm start

Going Beyond Charts

  • Explore 20+ pre-built business specific dashboards for different industries like energy and manufacturing to business functions like sales, marketing and operations here.
  • See Data Stories built using FusionCharts’ interactive JavaScript visualizations and learn how to communicate real-world narratives through underlying data to tell compelling stories.

Licensing

The FusionCharts React component is open-source and distributed under the terms of the MIT/X11 License. However, you will need to download and include FusionCharts library in your page separately, which has a separate license.

angular-fusioncharts's People

Contributors

anthony-appwrk avatar ashok1994 avatar brohit4 avatar jackytse avatar jeonghun-p avatar kaps001 avatar kodandarama-accolite avatar kruzznikam avatar meherhowji-5740 avatar paresh-accolite avatar rohanoid5 avatar rohitkr avatar rousan avatar sanjay-bhan avatar sanjaybhan avatar scott1905 avatar sikrigagan avatar sureshsangra19 avatar vicd0991 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

angular-fusioncharts's Issues

Compile Error with Angular 4

".../node_modules/@types/fusioncharts/fusioncharts.charts"' resolves to a non-module entity and cannot be imported using this construct.
".../app/app.module.ts (23,9): Cannot find name 'FusionChartsComponent'.

Can you pls help?

JSX element type 'FusionChartStatic' is not a constructor function for JSX elements. Type 'FusionChartStatic' is missing the following properties from type 'Element': type, props, keyts

We have implemented fusioncharts in react SPFX framework project, on the implemenation of
import * as FusionCharts; and
<FusionCharts
type="line"
width="600"
height="400"
dataSource={{
chart: {
theme: 'fusion',
caption: 'Total footfall in Bakersfield Central',
subCaption: 'Last week',
xAxisName: 'Day',
/>

; we are getting below error:

JSX element type 'FusionChartStatic' is not a constructor function for JSX elements.
Type 'FusionChartStatic' is missing the following properties from type 'Element': type, props, keyts(2605)

at

versions are as follows:

"@loadable/component": "^5.10.2",
"@microsoft/sp-core-library": "1.9.1",
"@microsoft/sp-loader": "^1.9.1",
"@microsoft/sp-lodash-subset": "1.9.1",
"@microsoft/sp-office-ui-fabric-core": "1.9.1",
"@microsoft/sp-webpart-base": "1.9.1",
"@progress/kendo-data-query": "^1.5.2",
"@progress/kendo-theme-default": "^4.2.0",
"@progress/kendo-treeview-react-wrapper": "2018.3.1017",
"@progress/kendo-ui": "2019.1.412",
"@types/es6-promise": "0.0.33",
"@types/jquery": "^3.3.31",
"@types/react": "16.8.8",
"@types/react-dom": "16.8.3",
"@types/webpack-env": "1.13.1",
"fusioncharts": "^3.14.0-sr.1",
"office-ui-fabric-react": "6.189.2",
"react": "16.8.5",
"react-dom": "16.8.5",
"react-fusioncharts": "^3.0.1",
"react-imported-component": "^6.1.0"
},
"resolutions": {
"@types/react": "16.8.8"
},
"devDependencies": {
"@microsoft/sp-build-web": "1.9.1",
"@microsoft/sp-tslint-rules": "1.9.1",
"@microsoft/sp-module-interfaces": "1.9.1",
"@microsoft/sp-webpart-workbench": "1.9.1",
"@microsoft/rush-stack-compiler-2.9": "0.7.16",
"gulp": "~3.9.1",
}

Chart is frozen

image

My project is angular 8 and I am using splinearea type of chart. There is select to set time period and when value is changed it will make api call using http client. After success of call it will update chart data. At that time I am getting above error.
Follow is code for api call and chart initialized event.
`getMetrics(params: string = '') {
const url = params
? 'https://test.parking-rewards.com/metrics?includeDropdownInfo=true' +
params
: 'https://test.parking-rewards.com/metrics?includeDropdownInfo=true';
const headers = {
headers: new HttpHeaders().set('AccessToken', '5e54089c21fad61758ce1326')
};
this.http.get(url, headers).subscribe((res: any) => {
console.log('get metrics: ', res);
this.isLoading = false;
this.adAccounts = res.adAccounts;
this.campaigns = res.campaigns;
this.adGroups = res.adGroups;
this.timePeriods = res.timePeriods;
this.selectTimePeriod = this.selectTimePeriod ? this.selectTimePeriod : this.timePeriods[0].value;
this.impressions = res.impressions;
if (this.impressionsChart) {
console.error('EEE impressions chart: ', this.impressions);
this.setChartData();
} else {
console.error('EEE impressions chart: ', this.impressions);
}
this.totalImpressions = res.totalImpressions;
this.clicks = res.clicks;
this.totalClicks = res.totalClicks;
this.spend = res.spend;
this.totalSpend = res.totalSpend
this.ctr = res.ctr;
this.totalCTR = res.totalCTR;
this.standard = 'Impressions';
this.comparings = ['Clicks', 'Spend', 'CTR'];
this.selectedMetric = '';
this.msSplineData.chart.paletteColors = [this.COLORS[0]];
const item = {
category: []
};
const data = {
seriesname: 'Impressions',
data: []
}
this.impressions.map((i: any) => {
item.category.push({label: i.label});
data.data.push({value: i.value})
});
this.msSplineData.categories = [];
this.msSplineData.categories.push(item);
this.msSplineData.dataset = [];
this.msSplineData.dataset.push(data);
}, (err) => {
console.error('get metrics error: ', err);
this.isLoading = false;
})
}

initialized(ev: any) {
console.log('initialized')
this.impressionsChart = ev.chart;
this.setChartData();
}
setChartData() {
const tmp = this.getSplineAreaSource(this.COLORS[0], this.impressions);
this.impressionsChart.setJSONData(tmp);
this.cdr.detectChanges();
}`

Every call api will be returned different length data. Probably length is 90, 7 or 14. Above error happened get 90 length data and after update it to 7 or 14 length.
After error happened I can't update chart(it is frozen)

Hope to get your help

Gantt chart problem on safari browser

Gantt chart lines overlapping on projects while horizontal scrolling when using safari browser.

Version:
fusioncharts=>3.13.2
angular-fusioncharts=>2.0.2

imageedit_1_5181878179

angular2-fusioncharts rc v4

I am using your latest version that is rc4 which you guys release last time 6 April 2017 after that there is not release,
Even given example not working in my project i tried a lot i giving issue.
My ng verision 4
If you guys have proper example send me link or guideline.

When running tests, angular fusion charts is throwing TypeError: FusionChartsModules is not a function

Versions:

  • "angular-fusioncharts": "^3.0.3"
  • "fusioncharts": "3.14.0-sr.1"
  • "jest": "^22.4.4"
  • "jest-canvas-mock": "^2.1.1"
  • "jest-preset-angular": "^5.2.3"

How we are importing FusionCharts into our spec files:

  • import { FusionChartsModule } from 'angular-fusioncharts';
  • import * as FusionCharts from 'fusioncharts';
  • import * as Charts from 'fusioncharts/fusioncharts.charts';
  • FusionChartsModule.fcRoot(FusionCharts, Charts);

When we run our tests, we receive the error "TypeError: FusionChartsModules is not a function" as shown in the image below.

Error with FusionChartsModule

However, when we comment out the else statement on line 53 in angular-fusioncharts/dist/index.js, we no longer get the type error.

No Error when commented out

In both cases, with or without the FusionChartsModules(core), our charts still rendered perfectly fine.
Is this an error that can easily be resolved on our end? Thanks.

Angular 9 support

I'm making an inventory to see if our project is possible to upgrade to Angular 9. Nowhere I can find if angular-fusioncharts is ready for Angular 9, not on this project readme, nor on the documentation page.

My question, does angular-fusioncharts work with Angular 9?

Uncaught TypeError: Cannot assign to read only property 'head' of object '[object HTMLDocument]'

I just follow the instraction for buildin "my first chart" and serving my test project the console shows me this error

Uncaught TypeError: Cannot assign to read only property 'head' of object '[object HTMLDocument]' at Object../node_modules/fusioncharts/fusioncharts.js (fusioncharts.js:13) at __webpack_require__ (bootstrap:79) at Module../src/app/app.module.ts (app.component.ts:8) at __webpack_require__ (bootstrap:79) at Module../src/main.ts (main.ts:1) at __webpack_require__ (bootstrap:79) at Object.0 (main.ts:12) at __webpack_require__ (bootstrap:79) at checkDeferredModules (bootstrap:45) at Array.webpackJsonpCallback [as push] (bootstrap:32)'

Here my dependencies:

"dependencies": {
"@angular/animations": "~8.1.3",
"@angular/common": "~8.1.3",
"@angular/compiler": "~8.1.3",
"@angular/core": "~8.1.3",
"@angular/forms": "~8.1.3",
"@angular/platform-browser": "~8.1.3",
"@angular/platform-browser-dynamic": "~8.1.3",
"@angular/router": "~8.1.3",
"angular-fusioncharts": "^3.0.2",
"fusioncharts": "^3.14.0",
"rxjs": "~6.5.2",
"tslib": "^1.10.0",
"zone.js": "^0.9.1"
},
"devDependencies": {
"@angular/cli": "~8.1.2",
"@angular/compiler-cli": "~8.1.3",
"@angular/language-service": "~8.1.3",
"@angular-devkit/build-angular": "~0.801.2",
"@types/jasmine": "~3.3.16",
"@types/jasminewd2": "~2.0.6",
"@types/node": "~12.6.8",
"codelyzer": "^5.1.0",
"jasmine-core": "~3.4.0",
"jasmine-spec-reporter": "~4.2.1",
"karma": "~4.2.0",
"karma-chrome-launcher": "~3.0.0",
"karma-coverage-istanbul-reporter": "~2.1.0",
"karma-jasmine": "~2.0.1",
"karma-jasmine-html-reporter": "^1.4.2",
"protractor": "~5.4.2",
"tslint": "~5.18.0",
"ts-node": "~8.3.0",
"typescript": "^3.4.5"
}

How can I fix it?
Thank you very much

TypeError: FusionChartsModules is not a function

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, [...]})

[..]

Then, in the HTML component, I define this

<fusioncharts
  [width]="width"
  [height]="height"
  [type]="type"
  [dataFormat]="dataFormat"
  [dataSource]="dataSource"
>
</fusioncharts>

And, in its associated TypeScript, this is the following code

import { Component, OnInit, Input } from '@angular/core';
import { VisService } from 'src/app/services/vis.service';

@Component({
  selector: 'app-pie',
  templateUrl: './pie.component.html',
  styleUrls: ['./pie.component.css']
})
export class PieComponent implements OnInit {

  receivingData: JSON;
  private width = 400;
  private height = 400;
  private type: string = "pie2d";
  private dataFormat: string = "json";
  private dataSource;



  constructor(private visService: VisService) { }

  ngOnInit() {
    this.visService.gatheredData.subscribe(res => {
      this.receivingData = res['data']['vis_data'];
      this.createNewPie();

    });

}

  private createNewPie(): void {
    this.dataSource = {
      chart: {
        showlegend: "1",
        showpercentvalues: "1",
        legendposition: "bottom",
        usedataplotcolorforlabels: "1",
        theme: "fusion"
      },
      data: this.receivingData['graduates']['content']
    }
  }


}

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)

Any idea on how to solve this?

Multiple charts in a view, some not rendering

I have 4 fusioncharts elements within a view and each of these is separated by an *ngIf which is only set to true once the dataSource for each chart is set. However, sometimes the charts will not render. Instead of seeing the charts, I see the message "FusionCharts will render here". So the *ngIf statement is true at this point and all of the data is set in the dataSource object but the chart still does not show.

Is there something I'm missing here?

Chart rendering performance

Hi.

I am making web page that has many charts and I use angular2 and angular2-fusioncharts.

All charts rendering time was very long when web page has many charts to render.

And I found that ngDoCheck() is problem.

I can get better chart rendering performance after deleting ngDoCheck() in fusioncharts.component.ts.

I think cause of the problem is that angular2 app is run on the zone.

And also I can get better performance using this patch.(#13)

Thanks.

Some data are missing

Hi,

As you can see in screenshots, a candlestick is missing with FusionChart :
mygraph
reference

I downloaded Forex data from this website : https://eaforexacademy.com/software/forex-historical-data/
Ticker is USD/EUR, timeframe 1D and the missing candle is from 25/03/2007.

Here is my graph properties :
graph.service.txt

Here it's how I parsed my data :
getDataFromFile(): Promise<any> { return new Promise<any>((resolve, reject) => { this.http.get('assets/EURUSD1440.csv', { responseType: 'text' }).subscribe( (data) => { const csvToRowArray = data.split('\r\n'); for (let index = 1; index < csvToRowArray.length - 1; index++) { const element = csvToRowArray[index].split('\t'); // d, o, h, l, c, v this.data.push({ date: element[0], open: parseFloat(element[1]), high: parseFloat(element[2]), low: parseFloat(element[3]), close: parseFloat(element[4]), volume: parseFloat(element[5]) }); } resolve(); }, (error) => { console.log(error); reject(error); } ); }); }

And the missing data is present in my data set. The 24/03/2007 is missing because it's a saturday.
....
2007-03-21 00:00 1.33137 1.34094 1.32861 1.33956 2674382
2007-03-22 00:00 1.33958 1.34002 1.33090 1.33285 2670842
2007-03-23 00:00 1.33311 1.33407 1.32762 1.32789 2488815
2007-03-25 00:00 1.32801 1.32933 1.32571 1.32708 191699
2007-03-26 00:00 1.32724 1.33455 1.32534 1.33267 633085
2007-03-27 00:00 1.33277 1.33667 1.33013 1.33482 614437
2007-03-28 00:00 1.33200 1.33716 1.33006 1.33082 625580
...

Thank you !

Error Error using FcRoot in NgModule

I am having this error in angular kernel 8.2+. The code where it indicates how to use FusionChartsModule.fcRoot (FusionCharts, Charts, FusionTheme, TimeSeries); he is out of date.

ERROR in Error during compilation of 'FusionChartsModule' template
Function calls are not supported by decorators in 'NgModule'
'NgModule' calls a function at ../@angular/core/core.ts(194.50).

HeatMap: Unhandled Promise rejection in Angular v.7 app

Hi, there!
I'm getting below error if choose heatmap as type for fusion-chart in Angular v.7 app.

<root> ; Task: Promise.then ; Value: Error: ChunkLoadError: Loading chunk 4 failed.
(error: http://localhost:4200/app/fusioncharts.powercharts.js)
    at Function.a.e (fusioncharts.js:13)
    at d (fusioncharts.js:13)
    at Function.<anonymous> (fusioncharts.js:13)
    at i (fusioncharts.js:13)
    at o (fusioncharts.js:13)
    at f (fusioncharts.js:13)
    at e.t.chartType (fusioncharts.js:13)
    at new e (fusioncharts.js:13)
    at new h (fusioncharts.js:13)
    at FusionChartsConstructor (fusioncharts.constructor.js:3)
    at fusioncharts.js:13
    at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invoke (zone.js:391)
    at Zone.push../node_modules/zone.js/dist/zone.js.Zone.run (zone.js:150)
    at zone.js:889
    at ZoneDelegate.push../node_modules/zone.js/dist/zone.js.ZoneDelegate.invokeTask (zone.js:423)
    at Zone.push../node_modules/zone.js/dist/zone.js.Zone.runTask (zone.js:195)
    at drainMicroTaskQueue (zone.js:601)
    at ZoneTask.push../node_modules/zone.js/dist/zone.js.ZoneTask.invokeTask [as invoke] (zone.js:502)
    at invokeTask (zone.js:1744)
    at HTMLScriptElement.globalZoneAwareCallback (zone.js:1770) Error: ChunkLoadError: Loading chunk 4 failed.

It reproduces even if use chart configuration from official docs:
https://www.fusioncharts.com/charts/heat-map-charts/heat-map-using-variants-of-single-color?framework=angular4

P.S.
For other types of charts, they render fine and my imports of chart-modules matches to official tutorials.
Versions of fusion charts:
angular-fusioncharts: ^3.0.3
fusioncharts: ^3.14.0-sr.1

my template:

    <fusioncharts
      width="100%"
      height="350"
      [type]="heatmap"
      [dataFormat]="'json'"
      [dataSource]="chartDataSource"
    >
    </fusioncharts>

Is it known issue?

Not working in angular v10

Warning: Entry point '@angular/core' contains deep imports into 'F:/Web/Angular/reporting.pkatalyst/node_modules/angular-fusioncharts/node_modules/rxjs/Observable', 'F:/Web/Angular/reporting.pkatalyst/node_modules/angular-fusioncharts/node_modules/rxjs/observable/merge', 'F:/Web/Angular/reporting.pkatalyst/node_modules/angular-fusioncharts/node_modules/rxjs/operator/share', 'F:/Web/Angular/reporting.pkatalyst/node_modules/angular-fusioncharts/node_modules/rxjs/Subject'. This is probably not a problem, but may cause the compilation of entry points to be out of order.
Compiling @angular/core : es2015 as esm2015
Error: Error on worker #1: TypeError: Cannot read property 'fileName' of null
at Object.getImportRewriter (F:\Web\Angular\reporting.pkatalyst\node_modules@angular\compiler-cli\ngcc\src\rendering\utils.js:23:72)
at DtsRenderer.renderDtsFile (F:\Web\Angular\reporting.pkatalyst\node_modules@angular\compiler-cli\ngcc\src\rendering\dts_renderer.js:77:72)
at F:\Web\Angular\reporting.pkatalyst\node_modules@angular\compiler-cli\ngcc\src\rendering\dts_renderer.js:69:134
at Map.forEach ()
at DtsRenderer.renderProgram (F:\Web\Angular\reporting.pkatalyst\node_modules@angular\compiler-cli\ngcc\src\rendering\dts_renderer.js:69:26)
at Transformer.transform (F:\Web\Angular\reporting.pkatalyst\node_modules@angular\compiler-cli\ngcc\src\packages\transformer.js:88:52)
at F:\Web\Angular\reporting.pkatalyst\node_modules@angular\compiler-cli\ngcc\src\execution\create_compile_function.js:52:42
at F:\Web\Angular\reporting.pkatalyst\node_modules@angular\compiler-cli\ngcc\src\execution\cluster\worker.js:85:54
at step (F:\Web\Angular\reporting.pkatalyst\node_modules@angular\compiler-cli\node_modules\tslib\tslib.js:143:27)
at Object.next (F:\Web\Angular\reporting.pkatalyst\node_modules@angular\compiler-cli\node_modules\tslib\tslib.js:124:57)
at ClusterMaster.onWorkerMessage (F:\Web\Angular\reporting.pkatalyst\node_modules@angular\compiler-cli\ngcc\src\execution\cluster\master.js:195:27)
at F:\Web\Angular\reporting.pkatalyst\node_modules@angular\compiler-cli\ngcc\src\execution\cluster\master.js:55:95
at ClusterMaster. (F:\Web\Angular\reporting.pkatalyst\node_modules@angular\compiler-cli\ngcc\src\execution\cluster\master.js:293:57)
at step (F:\Web\Angular\reporting.pkatalyst\node_modules@angular\compiler-cli\node_modules\tslib\tslib.js:143:27)
at Object.next (F:\Web\Angular\reporting.pkatalyst\node_modules@angular\compiler-cli\node_modules\tslib\tslib.js:124:57)
at F:\Web\Angular\reporting.pkatalyst\node_modules@angular\compiler-cli\node_modules\tslib\tslib.js:117:75
at new Promise ()
at Object.__awaiter (F:\Web\Angular\reporting.pkatalyst\node_modules@angular\compiler-cli\node_modules\tslib\tslib.js:113:16)
at EventEmitter. (F:\Web\Angular\reporting.pkatalyst\node_modules@angular\compiler-cli\ngcc\src\execution\cluster\master.js:287:32)
at EventEmitter.emit (events.js:315:20)

Incorrect Angular Version for 1.0.3

The latest package (1.0.3) is throwing an issue when used in angular 2 projects.
ctorParameters.map error is thrown due to this.

based on latest source code, it is using angular 4, hence throws error on angular 2 projects.

Errors when I replace the trial js files with latest licensed js files

I am getting and error when I run the angular2-seed-fusioncharts sample (as well as my work project) when I replace the trial js files for fusionscharts with the licensed version of the js files.

Any idea on how I can resolve this? Has anyone tried getting the angular2 stuff running with licensed versions of the js files? If so can you tell me what you did?

The errors I am getting are:
Uncaught TypeError: Cannot read property 'test' of undefined
at Object. (http://localhost:3000/main.bundle.js:68684:135)
at Function.p.core (http://localhost:3000/main.bundle.js:66834:18)
at Function.module (http://localhost:3000/main.bundle.js:66833:274)
at Function.register (http://localhost:3000/main.bundle.js:66836:387)
at http://localhost:3000/main.bundle.js:68683:125
at http://localhost:3000/main.bundle.js:62464:13
at Array.forEach (native)
at Function.FusionChartsModule.forRoot (http://localhost:3000/main.bundle.js:62463:29)
at http://localhost:3000/main.bundle.js:63066:60
at Object. (http://localhost:3000/main.bundle.js:63077:2)
(anonymous) @ fusioncharts.widgets.js:14
p.core @ fusioncharts.js:23
module @ fusioncharts.js:22
register @ fusioncharts.js:25
(anonymous) @ fusioncharts.widgets.js:13
(anonymous) @ index.js:25
FusionChartsModule.forRoot @ index.js:24
(anonymous) @ app.module.ts:40
(anonymous) @ app.module.ts:50
webpack_require @ bootstrap e4c90a4…:19
(anonymous) @ main.browser.ts:4
webpack_require @ bootstrap e4c90a4…:19
(anonymous) @ zone.js:1426
webpack_require @ bootstrap e4c90a4…:19
(anonymous) @ bootstrap e4c90a4…:63
(anonymous) @ bootstrap e4c90a4…:63
fusioncharts.js:23Uncaught SyntaxError: #25081840 undefined Error >> Use the "new" keyword while creating a new FusionCharts object
at p.core (http://localhost:3000/main.bundle.js:66834:156)
at http://localhost:3000/main.bundle.js:62464:13
at Array.forEach (native)
at Function.FusionChartsModule.forRoot (http://localhost:3000/main.bundle.js:62463:29)
at http://localhost:3000/main.bundle.js:63066:60
at Object. (http://localhost:3000/main.bundle.js:63077:2)
at webpack_require (http://localhost:3000/main.bundle.js:20:30)
at Object. (http://localhost:3000/main.bundle.js:49753:20)
at webpack_require (http://localhost:3000/main.bundle.js:20:30)
at Object. (http://localhost:3000/main.bundle.js:76442:18)
p.core @ fusioncharts.js:23
(anonymous) @ index.js:25
FusionChartsModule.forRoot @ index.js:24
(anonymous) @ app.module.ts:40
(anonymous) @ app.module.ts:50
webpack_require @ bootstrap e4c90a4…:19
(anonymous) @ main.browser.ts:4
webpack_require @ bootstrap e4c90a4…:19
(anonymous) @ zone.js:1426
webpack_require @ bootstrap e4c90a4…:19
(anonymous) @ bootstrap e4c90a4…:63
(anonymous) @ bootstrap e4c90a4…:63
fusioncharts.js:89Uncaught TypeError: a.setChartData is not a function
at Function. (http://localhost:3000/main.bundle.js:66900:243)
at z (http://localhost:3000/main.bundle.js:66844:496)
at I (http://localhost:3000/main.bundle.js:66845:204)
at Object.triggerEvent (http://localhost:3000/main.bundle.js:66848:358)
at Object.g.raiseEvent (http://localhost:3000/main.bundle.js:66849:176)
at p.core (http://localhost:3000/main.bundle.js:66835:449)
at http://localhost:3000/main.bundle.js:62464:13
at Array.forEach (native)
at Function.FusionChartsModule.forRoot (http://localhost:3000/main.bundle.js:62463:29)
at http://localhost:3000/main.bundle.js:63066:60

ng Module Support

I found FusionChartsModule but when importing in app.module.ts, my Ionic compiler gives the following error:

[15:54:19]  Error: Error at /Local/Users/jharris/Desktop/dev/.tmp/node_modules/angular2-fusioncharts/src/fusioncharts.component.ngfactory.ts:83:75 
[15:54:19]  Property 'containerId' is private and only accessible within class 'FusionChartsComponent'. 
[15:54:19]  ngc failed 
[15:54:19]  ionic-app-script task: "build" 
[15:54:19]  Error: Error

Then if I change the scope of the variable from 'private' to 'public' I get this error:

[15:50:43]  bundle failed: Could not resolve 'angular2-fusioncharts/index' from /Local/Users/jharris/Desktop/dev/.tmp/app/app.module.ngfactory.js 
[15:50:43]  ionic-app-script task: "build" 
[15:50:43]  Error: Could not resolve 'angular2-fusioncharts/index' from /Local/Users/jharris/Desktop/dev/.tmp/app/app.module.ngfactory.js 

Any help or direction would be much appreciated. Thank you.

rxjs-compat needed for newer versions of angular

I struggled getting this to work after upgrading to a newer fusioncharts version (3.16 and angular-fusioncharts 3.1.0).

I needed to install the rxjs-compat package to make the solution build. This should either be mentioned in the documentation, be included by default, or fixed entirely by using newer versions of rxjs and angular, instead of using older versions :)

For searchability, I'm attaching the errors I got below:

ERROR in ./node_modules/angular-fusioncharts/node_modules/@angular/core/@angular/core.es5.js
Module not found: Error: Can't resolve 'rxjs/Observable' in 'C:\EVProjects_Git\ev-git\EVWeb\EV40Web\EV.Web40\EV.Web40\node_modules\angular-fusioncharts\node_modules\@angular\core\@angular'
ERROR in ./node_modules/angular-fusioncharts/node_modules/@angular/core/@angular/core.es5.js
Module not found: Error: Can't resolve 'rxjs/Subject' in 'C:\EVProjects_Git\ev-git\EVWeb\EV40Web\EV.Web40\EV.Web40\node_modules\angular-fusioncharts\node_modules\@angular\core\@angular'
ERROR in ./node_modules/angular-fusioncharts/node_modules/@angular/core/@angular/core.es5.js
Module not found: Error: Can't resolve 'rxjs/observable/merge' in 'C:\EVProjects_Git\ev-git\EVWeb\EV40Web\EV.Web40\EV.Web40\node_modules\angular-fusioncharts\node_modules\@angular\core\@angular'
ERROR in ./node_modules/angular-fusioncharts/node_modules/@angular/core/@angular/core.es5.js
Module not found: Error: Can't resolve 'rxjs/operator/share' in 'C:\EVProjects_Git\ev-git\EVWeb\EV40Web\EV.Web40\EV.Web40\node_modules\angular-fusioncharts\node_modules\@angular\core\@angular'

Problem in Build Angular 5.0.0

I tried upgrading the fusioncharts to version 3.13.2 along with the version of angular-fusioncharts 2.0.2.

I made the changes in app.modules:

import {FusionChartsModule} from 'angular-fusioncharts';
import * as FusionCharts from 'fusioncharts';
import * as Charts from 'fusioncharts / fusioncharts.charts';
import Fint from 'fusioncharts / themes / en / fusioncharts.theme.fint';

FusionChartsModule.fcRoot (FusionCharts, Charts, Fint);

then I imported FusionChartsModule.

Everything works fine with "ng serve", but when I use "ng build --prod" I get this error in console chrome:
image

On the chart I got the message that I did not import correctly:
"Chart type not suported"

Why is not it working in production?

Angular Version: 5.0.0
Browser: Google Chrome Version 69.0.3497.100 (Official) 64-bit
Fusioncharts library: 3.13.2
angular-fusioncharts: 2.0.2

Can't resolve 'rxjs/Subject' in 'node_modules\angular-fusioncharts\node_modules\@angular\core\@angular'

Hello, I have a big project with several modules...

angular 8.2
[email protected]
[email protected]

To achieve better performance I imported fusioncharts module in the single module of my app:

import {CommonModule} from '@angular/common';
import {NgModule} from '@angular/core';
import {SharedModule} from '@app/share-module';
import {StatusRouting} from './status.routing';

import { FusionChartsModule } from 'angular-fusioncharts';
// Import FusionCharts library and chart modules
import * as FusionCharts from 'fusioncharts';
import * as charts from 'fusioncharts/fusioncharts.charts';
import * as FusionTheme from 'fusioncharts/themes/fusioncharts.theme.fusion';

// Pass the fusioncharts library and chart modules
FusionChartsModule.fcRoot(FusionCharts, charts, FusionTheme);
@NgModule({
  imports: [CommonModule, SharedModule, StatusRouting, FusionChartsModule],

  declarations: [
    StatusRouting.components,
  ],

  entryComponents: []
})
export class StatusModule {
}

and I use it in my component, but I got error on complie:

ERROR in ./node_modules/angular-fusioncharts/node_modules/@angular/core/@angular/core.js
Module not found: Error: Can't resolve 'rxjs/Subject' in 'C:\htdocs\my_project\node_modules\angular-fusioncharts\node_modules\@angular\core\@angular'
ERROR in ./node_modules/angular-fusioncharts/node_modules/@angular/core/@angular/core.js
Module not found: Error: Can't resolve 'rxjs/observable/merge' in 'C:\htdocs\my_project\node_modules\angular-fusioncharts\node_modules\@angular\core\@angular'
ERROR in ./node_modules/angular-fusioncharts/node_modules/@angular/core/@angular/core.js
Module not found: Error: Can't resolve 'rxjs/operator/share' in 'C:\htdocs\my_project\node_modules\angular-fusioncharts\node_modules\@angular\core\@angular'

Cannot compile with --prod version

I use Fusioncharts in Ionic-2 project. When I compile the project using --prod version, I have the following error.

-- ionic build android --release --prod
-- Error :

[12:00:15] Error: ./~/angular2-fusioncharts/index.ts Module build failed: TypeE
rror: Cannot read property 'content' of
undefined at Object.optimizationLoader
(D:\FibaRatification\node_modules@ionic\app-scripts\dist\webpack\op
timization-loader-impl.js:14:24) at ...

TypeError: Cannot read property 'addSymbol' of undefined

TypeError: Cannot read property 'addSymbol' of undefined at helper.js:1 at Module../node_modules/@fusioncharts/core/src/toolbox/tools/helper.js (helper.js:1) at webpack_require (bootstrap:84) at Module../node_modules/@fusioncharts/core/src/toolbox/tools/tool.js (tool.js:1) at webpack_require (bootstrap:84) at Module../node_modules/@fusioncharts/core/src/toolbox/tools/scrollbar/index.js (index.js:1) at webpack_require (bootstrap:84) at Module../node_modules/@fusioncharts/core/src/toolbox/tools/index.js (index.js:1) at webpack_require (bootstrap:84) at Module../node_modules/@fusioncharts/core/src/toolbox/index.js (index.js:1) at resolvePromise (zone-evergreen.js:797) at resolvePromise (zone-evergreen.js:754) at zone-evergreen.js:858 at ZoneDelegate.invokeTask (zone-evergreen.js:391) at Object.onInvokeTask (core.js:34182) at ZoneDelegate.invokeTask (zone-evergreen.js:390) at Zone.runTask (zone-evergreen.js:168) at drainMicroTaskQueue (zone-evergreen.js:559)

Cannot assign to read only property '6' of string XX

Hi,

I use FusionChart with Angular 10 for candlestick chart. I have a CSV file where each data (high, open, close ...) are extracted.
I have an error in createDataTable() :
ERROR Error: Uncaught (in promise): TypeError: Cannot assign to read only property '6' of string '2007-01-02'
TypeError: Cannot assign to read only property '6' of string '2007-01-02'

I started with the example given in a tutorial but I struggle to pass data in a correct format I guess.
At start, data are fetch from a server. See the tutorial : https://www.fusioncharts.com/fusiontime/examples/interactive-candlestick-chart?framework=angular4

app.component - Copie.txt
Any idea ?
Thank you :)

Timeseries

Unable to use timeseries or Fusion Time for angular.

Update dependencies or use a range

Could be possible to update the dependencies or, if Angular 4 still necessary, make a dep range like the following?

"dependencies": {
    "@angular/animations": ">=4.0.0",
    "@angular/common": ">=4.0.0",
    "@angular/compiler": ">=4.0.0",
    "@angular/core": ">=4.0.0",
    "@angular/forms": ">=4.0.0",
    "@angular/http": ">=4.0.0",
    "@angular/platform-browser": ">=4.0.0",
    "@angular/platform-browser-dynamic": ">=4.0.0",
    "@angular/router": ">=4.0.0",
    "angularjs2-tabs": "0.0.1-beta.1",
    "bootstrap": ">=3.3.7",
    "core-js": ">=2.4.1",
    "https-proxy-agent": "^2.2.4",
    "mixin-deep": "^1.3.2",
    "prismjs": "^1.6.0",
    "rxjs": ">=5.4.1",
    "websocket-extensions": "^0.1.4",
    "ws": "^3.3.3",
    "zone.js": ">=0.8.14"
  },

Wrong library name in licence part

In the licence part at the Angular2-FusionCharts page is written 'Angular-FusionCharts'. But that is the name of the Angular 1 library. Should be corrected to avoid any licencing problems.

Cannot read property 'dispose' of undefined in ngOnDestroy

We use many charts in app and user can switch from one chart type to another (rendered as different components of course). Also charts are rebuilded on window:resize event. If few resize event appear in a row or user switches fast from one chart to another, his console becomes filled with this messages:

image

that comes from angular-fusioncharts component, ngOnDestroy hook. Sometimes this blocks chart rendering, sometimes not (10% of cases - blocks and nothing is rendered).
I believe it's trying to dispose chart config object, but if chart was not fully initialized by the time it gets destroyed, there won't be this object, so nothing to dispose.

Can't not run this example

npm install
npm start

then:

 ✘ ⚡ root@OVERWATCH  /mnt/d/workspace/ng2Projects/angular2-fusioncharts   master ●  npm start

> [email protected] start /mnt/d/workspace/ng2Projects/angular2-fusioncharts
> tsc && concurrently "npm run tsc:w" "npm run lite"

node_modules/@angular/core/src/application_ref.d.ts(68,88): error TS2304: Cannot find name 'Promise'.
node_modules/@angular/core/src/application_ref.d.ts(124,42): error TS2304: Cannot find name 'Promise'.
node_modules/@angular/core/src/application_ref.d.ts(183,33): error TS2304: Cannot find name 'Promise'.
node_modules/@angular/core/src/change_detection/differs/default_keyvalue_differ.d.ts(24,15): error TS2304: Cannot find name 'Map'.
node_modules/@angular/core/src/change_detection/differs/default_keyvalue_differ.d.ts(26,16): error TS2304: Cannot find name 'Map'.
node_modules/@angular/core/src/di/reflective_provider.d.ts(106,123): error TS2304: Cannot find name 'Map'.
node_modules/@angular/core/src/di/reflective_provider.d.ts(106,165): error TS2304: Cannot find name 'Map'.
node_modules/@angular/core/src/facade/async.d.ts(27,33): error TS2304: Cannot find name 'Promise'.node_modules/@angular/core/src/facade/async.d.ts(28,45): error TS2304: Cannot find name 'Promise'.node_modules/@angular/core/src/facade/collection.d.ts(1,25): error TS2304: Cannot find name 'MapConstructor'.
node_modules/@angular/core/src/facade/collection.d.ts(2,25): error TS2304: Cannot find name 'SetConstructor'.
node_modules/@angular/core/src/facade/collection.d.ts(4,27): error TS2304: Cannot find name 'Map'.node_modules/@angular/core/src/facade/collection.d.ts(4,39): error TS2304: Cannot find name 'Map'.node_modules/@angular/core/src/facade/collection.d.ts(7,9): error TS2304: Cannot find name 'Map'.
node_modules/@angular/core/src/facade/collection.d.ts(8,30): error TS2304: Cannot find name 'Map'.node_modules/@angular/core/src/facade/collection.d.ts(11,43): error TS2304: Cannot find name 'Map'.
node_modules/@angular/core/src/facade/collection.d.ts(12,27): error TS2304: Cannot find name 'Map'.
node_modules/@angular/core/src/facade/collection.d.ts(14,23): error TS2304: Cannot find name 'Map'.
node_modules/@angular/core/src/facade/collection.d.ts(15,25): error TS2304: Cannot find name 'Map'.
node_modules/@angular/core/src/facade/collection.d.ts(100,41): error TS2304: Cannot find name 'Set'.
node_modules/@angular/core/src/facade/collection.d.ts(101,22): error TS2304: Cannot find name 'Set'.
node_modules/@angular/core/src/facade/collection.d.ts(102,25): error TS2304: Cannot find name 'Set'.
node_modules/@angular/core/src/facade/lang.d.ts(4,17): error TS2304: Cannot find name 'Map'.
node_modules/@angular/core/src/facade/lang.d.ts(5,17): error TS2304: Cannot find name 'Set'.
node_modules/@angular/core/src/facade/lang.d.ts(59,59): error TS2304: Cannot find name 'Map'.
node_modules/@angular/core/src/facade/promise.d.ts(2,14): error TS2304: Cannot find name 'Promise'.
node_modules/@angular/core/src/facade/promise.d.ts(8,32): error TS2304: Cannot find name 'Promise'.
node_modules/@angular/core/src/facade/promise.d.ts(9,38): error TS2304: Cannot find name 'Promise'.
node_modules/@angular/core/src/facade/promise.d.ts(10,35): error TS2304: Cannot find name 'Promise'.
node_modules/@angular/core/src/facade/promise.d.ts(10,93): error TS2304: Cannot find name 'Promise'.
node_modules/@angular/core/src/facade/promise.d.ts(11,34): error TS2304: Cannot find name 'Promise'.
node_modules/@angular/core/src/facade/promise.d.ts(11,50): error TS2304: Cannot find name 'Promise'.
node_modules/@angular/core/src/facade/promise.d.ts(12,32): error TS2304: Cannot find name 'Promise'.
node_modules/@angular/core/src/facade/promise.d.ts(12,149): error TS2304: Cannot find name 'Promise'.
node_modules/@angular/core/src/facade/promise.d.ts(13,43): error TS2304: Cannot find name 'Promise'.
node_modules/@angular/core/src/linker/component_resolver.d.ts(9,58): error TS2304: Cannot find name 'Promise'.
node_modules/@angular/core/src/linker/component_resolver.d.ts(13,49): error TS2304: Cannot find name 'Promise'.
node_modules/@angular/core/src/linker/dynamic_component_loader.d.ts(61,148): error TS2304: Cannot find name 'Promise'.
node_modules/@angular/core/src/linker/dynamic_component_loader.d.ts(102,144): error TS2304: Cannot find name 'Promise'.
node_modules/@angular/core/src/linker/dynamic_component_loader.d.ts(107,139): error TS2304: Cannot find name 'Promise'.
node_modules/@angular/core/src/linker/dynamic_component_loader.d.ts(108,135): error TS2304: Cannot find name 'Promise'.
node_modules/@angular/core/src/linker/systemjs_component_resolver.d.ts(11,53): error TS2304: Cannot find name 'Promise'.
node_modules/@angular/core/src/linker/systemjs_component_resolver.d.ts(19,53): error TS2304: Cannot find name 'Promise'.
node_modules/@angular/platform-browser-dynamic/index.d.ts(72,90): error TS2304: Cannot find name 'Promise'.
node_modules/@angular/platform-browser-dynamic/index.d.ts(76,99): error TS2304: Cannot find name 'Promise'.
node_modules/@angular/platform-browser-dynamic/index.d.ts(80,99): error TS2304: Cannot find name 'Promise'.
node_modules/rxjs/Observable.d.ts(10,66): error TS2304: Cannot find name 'Promise'.
node_modules/rxjs/Observable.d.ts(66,60): error TS2304: Cannot find name 'Promise'.
node_modules/rxjs/Observable.d.ts(66,70): error TS2304: Cannot find name 'Promise'.

npm ERR! Linux 3.4.0+
npm ERR! argv "/usr/bin/nodejs" "/usr/bin/npm" "start"
npm ERR! node v4.2.6
npm ERR! npm  v3.5.2
npm ERR! code ELIFECYCLE
npm ERR! [email protected] start: `tsc && concurrently "npm run tsc:w" "npm run lite" `
npm ERR! Exit status 2
npm ERR!
npm ERR! Failed at the [email protected] start script 'tsc && concurrently "npm run tsc:w" "npm run lite" '.
npm ERR! Make sure you have the latest version of node.js and npm installed.
npm ERR! If you do, this is most likely a problem with the angular2-fusioncharts package,
npm ERR! not with npm itself.
npm ERR! Tell the author that this fails on your system:
npm ERR!     tsc && concurrently "npm run tsc:w" "npm run lite"
npm ERR! You can get information on how to open an issue for this project with:
npm ERR!     npm bugs angular2-fusioncharts
npm ERR! Or if that isn't available, you can get their info via:
npm ERR!     npm owner ls angular2-fusioncharts
npm ERR! There is likely additional logging output above.

npm ERR! Please include the following file with any support request:

LinkedChart Rendering position at rc-4 and rc-5

I have 5 report page in my app and the page contains 5 slides. Each slide has its own linked charts. When i upgrade the version to rc-5, every linked chart is openinig over the first chart. (first chart at the first slide.). It should be opening over its parent child.

Angular version: 2.4.8

Error building with FusionChartsModule.forRoot method

Hello, I installed the angular2-fusioncharts from npm and all works well. I created a chart and managed to display it without problems. When I run a build with angular-cli I recieve the following

ERROR in Error encountered resolving symbol values statically. Calling function 'FusionChartsModule', function calls are not supported. Consider replacing the function or lambda with a reference to an exported function, resolving symbol AppModule.

Did anyone else encountered this issue using this?

Charts not working with FusionCharts 3.14.0

Zone.js has detected that ZoneAwarePromise (window|global).Promise has been overwritten.
Most likely cause is that a Promise polyfill has been loaded after Zone.js (Polyfilling Promise api is not necessary when zone.js is loaded. If you must load one, do so before loading zone.js.)

Unexpected value FusionChartsModule in 3.1.1

We were using 3.0.1 with Angular 8.1 and ng build was working fine. When i change to 3.1.1 we get Unexpected value 'FusionChartsModule in node_modules/angular-fusioncharts/dist/angular-fusioncharts.js'

Cannot compile angular2-fusioncharts with --aot --prod

When I try to compile angular2-fusioncharts with --aot --prod, I get this error message:

ERROR in ......./node_modules/angular2-fusioncharts/src/fusioncharts.component.ngfactory.ts (32,72): Property 'containerId' is private and only accessible within class 'FusionChartsComponent'.

Angular version: 4.1.3

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.