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

Commit

Permalink
Merge pull request #3 from SoftwareAG/dev
Browse files Browse the repository at this point in the history
Merging 1.2.0 from Dev into Main
  • Loading branch information
NeeruAR authored Mar 25, 2022
2 parents 9b4a63d + f103ff5 commit 32cd358
Show file tree
Hide file tree
Showing 8 changed files with 36 additions and 17 deletions.
1 change: 1 addition & 0 deletions debug.log
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
[0316/155714.845:ERROR:registration_protocol_win.cc(102)] CreateFile: The system cannot find the file specified. (0x2)
16 changes: 8 additions & 8 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gp-smart-echart-widget",
"version": "1.1.0",
"version": "1.2.0",
"description": "This is an Angular 11 widget, which is designed to display the chart based on the REST data or Datahub.",
"author": "Neeru Arora - Software AG, Global Presales",
"license": "Apache 2.0",
Expand Down Expand Up @@ -34,8 +34,8 @@
"@c8y/style": "1011.0.12",
"@juggle/resize-observer": "^3.3.1",
"angular-resize-event": "^2.1.0",
"echarts": "^5.2.1",
"echarts-simple-transform": "^1.0.0",
"echarts": "^5.2.2",
"ngx-bootstrap": "6.2.0",
"ngx-echarts": "^7.1.0",
"rxjs": "~6.6.3",
Expand Down
2 changes: 1 addition & 1 deletion projects/gp-smart-echart-widget/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "gp-smart-echart-widget",
"version": "1.1.0",
"version": "1.2.0",
"description": "This is an Angular 11 widget, which is designed to display the chart based on the REST data or Datahub.",
"author": "Neeru Arora - Software AG, Global Presales",
"license": "Apache 2.0",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -475,6 +475,12 @@ export class GpSmartEchartWidgetComponent implements OnInit, OnDestroy {
else if ((userInput.type === 'line' || userInput.type === 'bar')
&& (userInput.layout !== 'simpleHorizontalBar' && userInput.layout !== 'stackedHorizontalBar')) {
this.seriesData = this.getSeriesData(userInput);
let boundaryGapValue;
if(userInput.type==='line'){
boundaryGapValue = false;
}else {
boundaryGapValue = true;
}
let xAxisName; let yAxisName;
if (userInput.xAxisDimension.split(',').length > 1) {
xAxisName = ''
Expand Down Expand Up @@ -521,7 +527,7 @@ export class GpSmartEchartWidgetComponent implements OnInit, OnDestroy {
return item[userInput.xAxisDimension];
}),
type: this.getXAxisType(userInput),
boundaryGap: false,
boundaryGap: boundaryGapValue,
axisLabel: {
interval: 0,
fontSize: axisFontSize,
Expand Down Expand Up @@ -671,6 +677,12 @@ export class GpSmartEchartWidgetComponent implements OnInit, OnDestroy {
dimensions.push(userInput.groupBy)
}
encodeData = this.getEncodeData(userInput, datasetId, xDimensions, yDimensions);
let boundaryGapValue;
if(userInput.type==='line'){
boundaryGapValue = false;
}else {
boundaryGapValue = true;
}
this.chartOption = {
dataset: [
{
Expand All @@ -688,7 +700,7 @@ export class GpSmartEchartWidgetComponent implements OnInit, OnDestroy {
xAxis: {
scale: true,
type: this.getXAxisType(userInput),
boundaryGap: false,
boundaryGap: boundaryGapValue,
axisLabel: {
interval: 0,
fontSize: axisFontSize,
Expand Down Expand Up @@ -1084,6 +1096,12 @@ export class GpSmartEchartWidgetComponent implements OnInit, OnDestroy {
}
}
encodeData = this.getEncodeData(userInput, datasetId, xDimensions, yDimensions);
let boundaryGapValue;
if(userInput.type==='line'){
boundaryGapValue = false;
}else {
boundaryGapValue = true;
}
this.chartOption = {
dataset: [
{
Expand Down Expand Up @@ -1120,7 +1138,7 @@ export class GpSmartEchartWidgetComponent implements OnInit, OnDestroy {
nameGap: 30,
scale: true,
type: this.getXAxisType(userInput),
boundaryGap: false,
boundaryGap: boundaryGapValue,
axisLabel: {
interval: 0,
fontSize: axisFontSize,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ export class SmartChartConfigComponent implements OnInit {
@Output() configData: EventEmitter<any> = new EventEmitter();
ngOnInit(): void {
this.aggregationMethods = chartValues.aggregateMethod;
if(this.config.aggrList.length===0){
if(!this.config.aggrList){
this.config.aggrList = [];
}else {
this.isAggrAdded = true;
Expand Down
2 changes: 1 addition & 1 deletion runtime/cumulocity.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"manifest": {
"noAppSwitcher": true,
"requiredPlatformVersion": ">=1011.0.0",
"version":"1.1.0",
"version":"1.2.0",
"author":"Software AG, Global Presales",
"description": "This is an Angular 11 widget, which is designed to display the chart based on the REST data or Datahub.",
"license": "Apache 2.0"
Expand Down
2 changes: 1 addition & 1 deletion runtime/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
"dist\\bundle-src\\custom-widget.js": "smart-echart-runtime-widget-CustomWidget",
"dist/bundle-src/custom-widget.js": "smart-echart-runtime-widget-CustomWidget"
},
"version": "1.1.0",
"version": "1.2.0",
"description": "Runtime package.json for library widget (written by Software AG Global Presales)",
"author": "Darpankumar Lalani - Software AG, Global Presales",
"license": "Apache 2.0"
Expand Down

0 comments on commit 32cd358

Please sign in to comment.