@@ -6,11 +6,11 @@ import { Stock } from '../data/financialData';
66import { ControllerComponent } from './controllers.component' ;
77import { GridFinJSComponent } from './grid-finjs.component' ;
88
9- @Component ( {
10- selector : 'app-finjs-main' ,
11- styleUrls : [ './main.component.scss' ] ,
12- templateUrl : './main.component.html' ,
13- imports : [ ControllerComponent , GridFinJSComponent , IgxOverlayOutletDirective , IgxDialogComponent , IgxDialogTitleDirective , IgxCategoryChartCoreModule , IgxDialogActionsDirective , IgxButtonDirective , IgxFocusDirective ]
9+ @Component ( {
10+ selector : 'app-finjs-main' ,
11+ styleUrls : [ './main.component.scss' ] ,
12+ templateUrl : './main.component.html' ,
13+ imports : [ ControllerComponent , GridFinJSComponent , IgxOverlayOutletDirective , IgxDialogComponent , IgxDialogTitleDirective , IgxCategoryChartCoreModule , IgxDialogActionsDirective , IgxButtonDirective , IgxFocusDirective ]
1414} )
1515export class FinJSDemoComponent implements OnDestroy , AfterViewInit {
1616 @ViewChild ( 'finGrid' , { static : true } ) public finGrid : GridFinJSComponent ;
@@ -99,7 +99,7 @@ export class FinJSDemoComponent implements OnDestroy, AfterViewInit {
9999 public setChartData ( args : Stock [ ] ) : void {
100100 this . chartData = [ ] ;
101101 args . forEach ( rowKey => {
102- const row : Stock = this . finGrid . grid . getRowByKey ( rowKey ) . data ;
102+ const row : Stock = this . finGrid . grid . getRowByKey ( rowKey . id ) . data ;
103103 this . chartData . push ( row ) ;
104104 this . chart . notifyInsertItem ( this . chartData , this . chartData . length - 1 , row ) ;
105105 } ) ;
0 commit comments