Skip to content

Commit 5d2cb25

Browse files
azure-pipelines[bot]tfsbuild
andauthored
Adding changes from build igniteui-xplat-examples-output+PRs_2024.12.18.3 (#710)
Co-authored-by: tfsbuild <tfsbuild@infragistics.com>
1 parent c90ed00 commit 5d2cb25

1 file changed

Lines changed: 22 additions & 19 deletions

File tree

  • samples/grids/pivot-grid/features/src

samples/grids/pivot-grid/features/src/index.tsx

Lines changed: 22 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -62,25 +62,28 @@ export default class Sample extends React.Component<any, any> {
6262
igrPivotValue1.member = "AmountofSale";
6363
igrPivotValue1.displayName = "Amount of Sale";
6464
igrPivotValue1.enabled = true;
65-
var SumOfSale = new IgrPivotAggregator();
66-
SumOfSale.key = "SUM";
67-
SumOfSale.label = "Sum of Sale";
68-
SumOfSale.aggregator = this.pivotDataFlatAggregateSumSale;
69-
SumOfSale.aggregatorName = "SUM";
70-
71-
var MinOfSale = new IgrPivotAggregator();
72-
MinOfSale.key = "MIN";
73-
MinOfSale.label = "Minimum of Sale";
74-
MinOfSale.aggregator = this.pivotDataFlatAggregateMinSale;
75-
MinOfSale.aggregatorName = "MIN";
76-
77-
var MaxOfSale = new IgrPivotAggregator();
78-
MaxOfSale.key = "MAX";
79-
MaxOfSale.label = "Maximum of Sale";
80-
MaxOfSale.aggregatorName = "MAX";
81-
MaxOfSale.aggregator = this.pivotDataFlatAggregateMaxSale;
82-
83-
igrPivotValue1.aggregateList = [SumOfSale,MinOfSale,MaxOfSale];
65+
var igrPivotAggregator1 = new IgrPivotAggregator();
66+
igrPivotAggregator1.key = "SUM";
67+
igrPivotAggregator1.label = "Sum of Sale";
68+
igrPivotAggregator1.aggregator = this.pivotDataFlatAggregateSumSale;
69+
70+
igrPivotValue1.aggregate = igrPivotAggregator1;
71+
var igrPivotAggregator2 = new IgrPivotAggregator();
72+
igrPivotAggregator2.key = "SUM";
73+
igrPivotAggregator2.label = "Sum of Sale";
74+
igrPivotAggregator2.aggregator = this.pivotDataFlatAggregateSumSale;
75+
76+
var igrPivotAggregator3 = new IgrPivotAggregator();
77+
igrPivotAggregator3.key = "MIN";
78+
igrPivotAggregator3.label = "Minimum of Sale";
79+
igrPivotAggregator3.aggregator = this.pivotDataFlatAggregateMinSale;
80+
81+
var igrPivotAggregator4 = new IgrPivotAggregator();
82+
igrPivotAggregator4.key = "MAX";
83+
igrPivotAggregator4.label = "Maximum of Sale";
84+
igrPivotAggregator4.aggregator = this.pivotDataFlatAggregateMaxSale;
85+
86+
igrPivotValue1.aggregateList = [igrPivotAggregator2,igrPivotAggregator3,igrPivotAggregator4];
8487

8588
pivotConfiguration1.values = [igrPivotValue1];
8689

0 commit comments

Comments
 (0)