From 5ad17ac00ae72f7fea6719322bca4a1c1e307add Mon Sep 17 00:00:00 2001 From: "azure-pipelines[bot]" <36771401+azure-pipelines[bot]@users.noreply.github.com> Date: Wed, 18 Dec 2024 13:48:19 -0500 Subject: [PATCH] Adding changes from build igniteui-xplat-examples-output+PRs_2024.12.18.3 (#914) Co-authored-by: tfsbuild --- .../grids/pivot-grid/features/src/index.ts | 41 ++++++++++--------- 1 file changed, 22 insertions(+), 19 deletions(-) diff --git a/samples/grids/pivot-grid/features/src/index.ts b/samples/grids/pivot-grid/features/src/index.ts index 22c3426cf..d88ea2c82 100644 --- a/samples/grids/pivot-grid/features/src/index.ts +++ b/samples/grids/pivot-grid/features/src/index.ts @@ -51,25 +51,28 @@ export class Sample { pivotValue1.member = "AmountofSale"; pivotValue1.displayName = "Amount of Sale"; pivotValue1.enabled = true; - var SumOfSale: IgcPivotAggregator = {} as IgcPivotAggregator; - SumOfSale.key = "SUM"; - SumOfSale.label = "Sum of Sale"; - SumOfSale.aggregator = this.pivotDataFlatAggregateSumSale; - SumOfSale.aggregatorName = "SUM"; - - var MinOfSale: IgcPivotAggregator = {} as IgcPivotAggregator; - MinOfSale.key = "MIN"; - MinOfSale.label = "Minimum of Sale"; - MinOfSale.aggregator = this.pivotDataFlatAggregateMinSale; - MinOfSale.aggregatorName = "MIN"; - - var MaxOfSale: IgcPivotAggregator = {} as IgcPivotAggregator; - MaxOfSale.key = "MAX"; - MaxOfSale.label = "Maximum of Sale"; - MaxOfSale.aggregatorName = "MAX"; - MaxOfSale.aggregator = this.pivotDataFlatAggregateMaxSale; - - pivotValue1.aggregateList = [SumOfSale,MinOfSale,MaxOfSale]; + var pivotAggregator1: IgcPivotAggregator = {} as IgcPivotAggregator; + pivotAggregator1.key = "SUM"; + pivotAggregator1.label = "Sum of Sale"; + pivotAggregator1.aggregator = this.pivotDataFlatAggregateSumSale; + + pivotValue1.aggregate = pivotAggregator1; + var pivotAggregator2: IgcPivotAggregator = {} as IgcPivotAggregator; + pivotAggregator2.key = "SUM"; + pivotAggregator2.label = "Sum of Sale"; + pivotAggregator2.aggregator = this.pivotDataFlatAggregateSumSale; + + var pivotAggregator3: IgcPivotAggregator = {} as IgcPivotAggregator; + pivotAggregator3.key = "MIN"; + pivotAggregator3.label = "Minimum of Sale"; + pivotAggregator3.aggregator = this.pivotDataFlatAggregateMinSale; + + var pivotAggregator4: IgcPivotAggregator = {} as IgcPivotAggregator; + pivotAggregator4.key = "MAX"; + pivotAggregator4.label = "Maximum of Sale"; + pivotAggregator4.aggregator = this.pivotDataFlatAggregateMaxSale; + + pivotValue1.aggregateList = [pivotAggregator2,pivotAggregator3,pivotAggregator4]; pivotConfiguration1.values = [pivotValue1];