From 05f3fa1e7e6380e576da059c2b7e2f3145223190 Mon Sep 17 00:00:00 2001 From: tfsbuild Date: Wed, 17 Jan 2024 22:18:35 +0200 Subject: [PATCH] Adding changes from build igniteui-xplat-examples-output+PRs_2024.1.17.3 --- .../data-aggregations/src/app.component.html | 17 +++++++------ .../data-aggregations/src/app.component.ts | 24 +++++++++++++++++-- 2 files changed, 32 insertions(+), 9 deletions(-) diff --git a/samples/charts/category-chart/data-aggregations/src/app.component.html b/samples/charts/category-chart/data-aggregations/src/app.component.html index d713c7f69..4a421c959 100644 --- a/samples/charts/category-chart/data-aggregations/src/app.component.html +++ b/samples/charts/category-chart/data-aggregations/src/app.component.html @@ -9,7 +9,7 @@ name="propertyEditorPanel1" #propertyEditorPanel1> + primitiveValue="Country" + (changed)="this.editorChangeUpdateInitialGroups($event)"> + primitiveValue="Sum(Sales) as Sales" + (changed)="this.editorChangeUpdateInitialSummaries($event)"> + primitiveValue="Sales Desc" + (changed)="this.editorChangeUpdateGroupSorts($event)"> diff --git a/samples/charts/category-chart/data-aggregations/src/app.component.ts b/samples/charts/category-chart/data-aggregations/src/app.component.ts index c0c93e81b..683af4877 100644 --- a/samples/charts/category-chart/data-aggregations/src/app.component.ts +++ b/samples/charts/category-chart/data-aggregations/src/app.component.ts @@ -1,8 +1,10 @@ import { AfterViewInit, Component, ViewChild, ChangeDetectionStrategy, ChangeDetectorRef } from '@angular/core'; import { ComponentRenderer, PropertyEditorPanelDescriptionModule, LegendDescriptionModule, CategoryChartDescriptionModule } from 'igniteui-angular-core'; import { SalesData } from './SalesData'; -import { IgxPropertyEditorPanelComponent, IgxPropertyEditorPropertyDescriptionComponent } from 'igniteui-angular-layouts'; -import { IgxCategoryChartComponent } from 'igniteui-angular-charts'; +import { IgxPropertyEditorPropertyDescriptionChangedEventArgs, IgxPropertyEditorPropertyDescriptionComponent } from 'igniteui-angular-layouts'; +import { IgxCategoryChartComponent, MarkerType, MarkerType_$type } from 'igniteui-angular-charts'; +import { EnumUtil } from 'igniteui-angular-core'; +import { IgxPropertyEditorPanelComponent } from 'igniteui-angular-layouts'; import { defineAllComponents } from 'igniteui-webcomponents'; @@ -57,5 +59,23 @@ export class AppComponent implements AfterViewInit { } + public editorChangeUpdateInitialGroups({ sender, args }: { sender: any, args: IgxPropertyEditorPropertyDescriptionChangedEventArgs }): void { + + var intialGroupVal = args.newValue.toString(); + chart.initialGroups = intialGroupVal; + } + + public editorChangeUpdateInitialSummaries({ sender, args }: { sender: any, args: IgxPropertyEditorPropertyDescriptionChangedEventArgs }): void { + + var intialSummaryVal = args.newValue.toString(); + chart.initialSummaries = intialSummaryVal; + } + + public editorChangeUpdateGroupSorts({ sender, args }: { sender: any, args: IgxPropertyEditorPropertyDescriptionChangedEventArgs }): void { + + var groupSortsVal = args.newValue.toString(); + chart.groupSorts = groupSortsVal; + } + }