|
Package.json:
"dependencies": {
"@angular/animations": "^5.2.0",
"@angular/common": "^5.2.0",
"@angular/compiler": "^5.2.0",
"@angular/core": "^5.2.0",
"@angular/forms": "^5.2.0",
"@angular/http": "^5.2.0",
"@angular/platform-browser": "^5.2.0",
"@angular/platform-browser-dynamic": "^5.2.0",
"@angular/router": "^5.2.0",
"classlist.js": "^1.1.20150312",
"core-js": "^2.4.1",
"rxjs": "^5.5.6",
"zone.js": "^0.8.19",
"@syncfusion/ej2-base": "18.4.44",
"@syncfusion/ej2-buttons": "18.4.46",
"@syncfusion/ej2-splitbuttons": "18.4.41",
"@syncfusion/ej2-calendars": "18.4.43",
"@syncfusion/ej2-charts": "18.4.46",
"@syncfusion/ej2-diagrams": "18.4.46",
"@syncfusion/ej2-maps": "18.4.39",
"@syncfusion/ej2-treemap": "18.4.39",
"@syncfusion/ej2-circulargauge": "18.4.39",
"@syncfusion/ej2-data": "18.4.46",
"@syncfusion/ej2-dropdowns": "18.4.46",
"@syncfusion/ej2-grids": "18.4.46",
"@syncfusion/ej2-inputs": "18.4.44",
"@syncfusion/ej2-lists": "18.4.39",
"@syncfusion/ej2-navigations": "18.4.44",
"@syncfusion/ej2-popups": "18.4.44",
"@syncfusion/ej2-lineargauge": "18.4.39",
"@syncfusion/ej2-pdf-export": "18.4.39",
"@syncfusion/ej2-compression": "18.4.39",
"@syncfusion/ej2-excel-export": "18.4.41",
"@syncfusion/ej2-file-utils": "18.4.39",
"@syncfusion/ej2-svg-base": "18.4.44",
"@syncfusion/ej2-documenteditor": "18.4.46",
"@syncfusion/ej2-richtexteditor": "18.4.46",
"@syncfusion/ej2-notifications": "18.4.39",
"@syncfusion/ej2-heatmap": "18.4.39",
"@syncfusion/ej2-pivotview": "18.4.46",
"@syncfusion/ej2-schedule": "18.4.46",
"@syncfusion/ej2-layouts": "18.4.44",
"@syncfusion/ej2-angular-base": "18.4.46",
"@syncfusion/ej2-angular-buttons": "18.4.46",
"@syncfusion/ej2-angular-splitbuttons": "18.4.41",
"@syncfusion/ej2-angular-calendars": "18.4.43",
"@syncfusion/ej2-angular-charts": "18.4.46",
"@syncfusion/ej2-angular-diagrams": "18.4.46",
"@syncfusion/ej2-angular-maps": "18.4.39",
"@syncfusion/ej2-angular-treemap": "18.4.39",
"@syncfusion/ej2-angular-circulargauge": "18.4.39",
"@syncfusion/ej2-angular-dropdowns": "18.4.46",
"@syncfusion/ej2-angular-grids": "18.4.46",
"@syncfusion/ej2-angular-inputs": "18.4.44",
"@syncfusion/ej2-angular-lists": "18.4.39",
"@syncfusion/ej2-angular-navigations": "18.4.44",
"@syncfusion/ej2-angular-popups": "18.4.44",
"@syncfusion/ej2-angular-lineargauge": "18.4.39",
"@syncfusion/ej2-angular-documenteditor": "18.4.46",
"@syncfusion/ej2-angular-richtexteditor": "18.4.46",
"@syncfusion/ej2-angular-notifications": "18.4.39",
"@syncfusion/ej2-angular-heatmap": "18.4.39",
"@syncfusion/ej2-angular-pivotview": "18.4.46",
"@syncfusion/ej2-angular-schedule": "18.4.46",
"@syncfusion/ej2-angular-layouts": "18.4.44",
},
"scripts": {
"ng": "ng",
"start": "ng serve",
"build": "ng build",
"test": "ng test",
"lint": "ng lint",
"e2e": "ng e2e"
},
"devDependencies": {
"@angular/cli": "1.6.5",
"@angular/compiler-cli": "^5.2.0",
"@angular/language-service": "^5.2.0",
"@types/jasmine": "~2.8.3",
"@types/jasminewd2": "~2.0.2",
"@types/node": "~6.0.60",
"codelyzer": "^4.0.1",
"jasmine-core": "~2.8.0",
"jasmine-spec-reporter": "~4.2.1",
"karma": "~2.0.0",
"karma-chrome-launcher": "~2.2.0",
"karma-cli": "~1.0.1",
"karma-coverage-istanbul-reporter": "^1.2.1",
"karma-jasmine": "~1.1.0",
"karma-jasmine-html-reporter": "^0.2.2",
"karma-junit-reporter": "^0.2.2",
"protractor": "~5.1.2",
"ts-node": "~4.1.0",
"tslint": "~5.9.1",
"typescript": "~2.8.12"
} |
|
App.component.ts:
//add your additional code here
public tooltipRender(args: IAccTooltipRenderEventArgs): void {
args["text"] = args.point.x + " : " + args.point.y + "% <b>" + " qty :" + "</b>" + args.point.y;
}
//add your additional code here
|
|
App.component.html:
//add your additional code here
<e-accumulation-series tooltipMappingName='qty' name='Project' [dataSource]='dataPie' xName='x' yName='y'
[startAngle]="startAngle" [endAngle]="endAngle" innerRadius="40%" radius="70%">
</e-accumulation-series>
//add your additional code here
App.component.ts:
//add your additional code here
public tooltipRender(args: IAccTooltipRenderEventArgs): void {
args["text"] =
args.point.x +
" : " +
args.point.y +
"% <b>" +
" qty :" +
"</b>" +
args.point.tooltip;
}
//add your additional code here
this.dataPie = [
{ x: "Labour", y: 8.333, text: "18%", qty: "12%" },
{ x: "Legal", y: 31.25, text: "8%", qty: "13%" },
{ x: "Production", y: 25, text: "15%", qty: "14%" }
];
//add your additional code here |
|
// add your additional code here
<e-series-collection>
<e-series
[dataSource]="data"
type="StackingColumn"
columnWidth="0.3"
xName="x"
yName="y"
name="UK"
width="2"
>
</e-series>
<e-series
[dataSource]="data1"
type="StackingColumn"
columnWidth="0.3"
xName="x"
yName="y"
name="Germany"
width="2"
>
</e-series>
<e-series
[dataSource]="data2"
type="StackingColumn"
columnWidth="0.3"
xName="x"
yName="y"
name="France"
width="2"
>
</e-series>
<e-series
[dataSource]="data3"
type="StackingColumn"
columnWidth="0.3"
xName="x"
yName="y"
name="Italy"
width="2"
>
</e-series>
</e-series-collection>
// add your additional code here
|
|
Query |
Response | |
|
Need to show "Description" Text. |
The event headerCellInfo will fire on rendering column headers. So, kindly use the headerCellInfo event to customize the column headers.
Kindly check the below code example for your reference.
Code Example:
Meanwhile, we have prepared a sample for your reference. Please find the sample and UG in the below links.
| |
|
Need to remove "Quantity" & "Unit Price" (Highlighted in yellow color) from "Pending For More Than 30 Days" & "Average Days For Approval" only, other things remain the same.
|
We would like to inform that the requirement can be achieved by applying filter settings. Please find the UG and sample below.
Code Snippet:
|
|
headerCell(args: any): void {
(this.pivotGridObj.renderModule as any).columnCellBoundEvent(args);
if (
args.node.getAttribute("index") == 1 &&
(args.node.getAttribute("aria-colindex") == 3 ||
args.node.getAttribute("aria-colindex") == 4)
) {
args.node.innerText = "";
}
} |
|
headerCell(args: any): void {
(this.pivotGridObj.renderModule as any).columnCellBoundEvent(args);
if (
args.node.getAttribute("index") == 0 &&
args.node.getAttribute("aria-colindex") == 3
) {
args.node.setAttribute("rowspan", 2);
}
if (
args.node.getAttribute("index") == 1 &&
(args.node.getAttribute("aria-colindex") == 3 ||
args.node.getAttribute("aria-colindex") == 4)
) {
args.node.innerText = "";
}
} |