Skip to content
This repository has been archived by the owner on Sep 5, 2024. It is now read-only.

Commit

Permalink
flicker and stacklistEmpty resolve
Browse files Browse the repository at this point in the history
  • Loading branch information
Neeru committed May 13, 2022
1 parent 017e747 commit 37cec99
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 3 deletions.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<div (resized)="onResized($event)" style="height:100%;width:100%;">
<div (resized)="onResized($event)" style="height:99%;width:99%;">

<div echarts [options]="chartOption" class="demo-chart" #chartBox [style.height.px]="height"
[style.width.px]="width"></div>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -180,6 +180,9 @@ export class GpSmartEchartWidgetComponent implements OnInit {
if (!userInput.aggrList) {
userInput.aggrList = [];
}
if (!userInput.stackList) {
userInput.stackList = [];
}
if (this.serviceData) {
this.dataChart.hideLoading();
let axisFontSize = 0;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -280,6 +280,11 @@ export class SmartChartConfigComponent implements OnInit {
} else {
this.isAggrAdded = true;
}
if (!this.config.stackList) {
this.config.stackList = [];
} else {
this.config.addStack = true;
}
this.config.legend = {};
// Default value for datahub sql query
if (this.config.datahubUrl === null || this.config.datahubUrl === undefined) {
Expand Down Expand Up @@ -355,15 +360,15 @@ export class SmartChartConfigComponent implements OnInit {
this.config.layout = val.layout[0].id;
}
});
}else {
} else {
this.chartData.chartLayout.filter(val => {
if (value === val.id) {
this.chartLayoutData = val.layout;
return;
}
});
}
}else {
} else {
sessionStorage.setItem('chartType', this.config.type);
}
if (this.config.type === 'bar' || this.config.type === 'line') {
Expand Down

0 comments on commit 37cec99

Please sign in to comment.