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 e2e02748c..058bbe74e 100644 --- a/samples/charts/category-chart/data-aggregations/src/app.component.ts +++ b/samples/charts/category-chart/data-aggregations/src/app.component.ts @@ -92,10 +92,8 @@ export class AppComponent implements AfterViewInit } public editorChangeUpdateInitialGroups({ sender, args }: { sender: any, args: IgxPropertyEditorPropertyDescriptionChangedEventArgs }): void { - var chart = this.chart; - var intialGroupVal = args.newValue.toString(); - chart.initialGroups = intialGroupVal; + chart.initialGroups = args.newValue.toString(); } }