Skip to content

Commit 2ec4c24

Browse files
committed
Merge branch 'hotfix/hotfix_branch' into develop
2 parents 4c8760c + 2014cd6 commit 2ec4c24

File tree

6 files changed

+20
-15
lines changed

6 files changed

+20
-15
lines changed

dist/dist/index.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -454,7 +454,7 @@ var FusionChartsComponent = /** @class */ (function () {
454454
// Edge case handling for DataTable
455455
if (prop === 'data') {
456456
if (obj[prop]._dataStore) {
457-
clonedObj[prop] = '-';
457+
clonedObj[prop] = "-";
458458
}
459459
else {
460460
clonedObj[prop] = this.cloneDataSource(obj[prop]);
@@ -492,15 +492,17 @@ var FusionChartsComponent = /** @class */ (function () {
492492
else {
493493
data = JSON.stringify(this.dataSource);
494494
}
495-
if (this.oldDataSource === data) {
496-
}
497-
else {
498-
this.updateChartData();
495+
if (this.oldDataSource !== data ||
496+
this.oldDataTable !== this.dataSource.data) {
497+
this.oldDataTable = this.dataSource && this.dataSource.data;
499498
this.oldDataSource = data;
499+
this.updateChartData();
500500
}
501501
};
502502
FusionChartsComponent.prototype.updateChartData = function () {
503-
var dataFormat = this.configObj.dataFormat || 'json', data = this.dataSource;
503+
var dataFormat = this.configObj && this.configObj.dataFormat
504+
? this.configObj.dataFormat
505+
: 'json', data = this.dataSource;
504506
if (this.chartObj) {
505507
this.chartObj.setChartData(data, dataFormat);
506508
}

dist/dist/index.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "angular-fusioncharts",
3-
"version": "3.0.2",
3+
"version": "3.0.1",
44
"repository": {
55
"type": "git",
66
"url": "https://github.com/fusioncharts/angular-fusioncharts"

dist/src/fusioncharts.component.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -207,6 +207,7 @@ declare class FusionChartsComponent implements OnInit, OnChanges, DoCheck, After
207207
containerId: string;
208208
private configObj;
209209
private oldDataSource;
210+
private oldDataTable;
210211
private constructerParams;
211212
element: ElementRef;
212213
fusionchartsService: FusionChartsService;

dist/src/fusioncharts.component.js

Lines changed: 8 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/src/fusioncharts.component.js.map

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)