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

Commit

Permalink
linting
Browse files Browse the repository at this point in the history
  • Loading branch information
Neeru committed Jun 21, 2022
1 parent a264b00 commit 914714b
Showing 1 changed file with 8 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,8 @@ export class GpSmartEchartWidgetComponent implements OnInit {
chartsessionData = JSON.parse(sessionStorage.getItem('Chartsession'));
let matchingURL = false;
chartsessionData.forEach((dataElement, index) => {
if ((userInput.apiUrl === dataElement.url) || (userInput.datahubUrl === dataElement.url) || (userInput.microserviceUrl === dataElement.url)) {
if ((userInput.apiUrl === dataElement.url) || (userInput.datahubUrl === dataElement.url)
|| (userInput.microserviceUrl === dataElement.url)) {
if (userInput.showApiInput) {
this.isDatahubPostCall = false;
this.isExternalAPI = false;
Expand Down Expand Up @@ -2051,7 +2052,7 @@ export class GpSmartEchartWidgetComponent implements OnInit {
}]
} else {
const xAxisDimensions = userInput.xAxisDimension.split(',');
const xAxisData = [];
const xAxisDataValue = [];
xAxisDimensions.forEach((value, i) => {
let ithXData;
if (this.isExternalAPI) {
Expand All @@ -2063,7 +2064,7 @@ export class GpSmartEchartWidgetComponent implements OnInit {
return item[xAxisDimensions[i]];
});
}
xAxisData[i] = {
xAxisDataValue[i] = {
type: userInput.type,
symbolSize: userInput.scatterSymbolSize,
data: ithXData,
Expand All @@ -2085,7 +2086,7 @@ export class GpSmartEchartWidgetComponent implements OnInit {
},
}
}); // end of for loop
return xAxisData;
return xAxisDataValue;
}// End of else part of XAxisDimension
} else {
if (userInput.yAxisDimension.split(',').length === 1) {
Expand Down Expand Up @@ -2398,7 +2399,7 @@ export class GpSmartEchartWidgetComponent implements OnInit {
}];
} else {
const yAxisDimensions = userInput.yAxisDimension.split(',');
const yAxisData = [];
const yAxisDataValue = [];
let ithYData;
yAxisDimensions.forEach((value, i) => {
if (this.isExternalAPI) {
Expand All @@ -2410,7 +2411,7 @@ export class GpSmartEchartWidgetComponent implements OnInit {
return item[yAxisDimensions[i]];
});
}
yAxisData[i] = {
yAxisDataValue[i] = {
name: yAxisDimensions[i],
stack: this.getStackName(userInput.stackList, yAxisDimensions[i]),
emphasis: {
Expand All @@ -2425,7 +2426,7 @@ export class GpSmartEchartWidgetComponent implements OnInit {
}
}
}); // end of for block
return yAxisData;
return yAxisDataValue;
}
}
// Fetch the color for chart
Expand Down

0 comments on commit 914714b

Please sign in to comment.