Hi
I have an Line Chart and i change value in data but chart is not refreshed ?
How could i refresh it ?
I Could click and on "plotArea" method i show new value in console , but chart don't move !!
Regards
i have tried without succes
[code]
<kendo-chart [style.height.px]="150"
[categoryAxis]="{ categories: categories2 }"
(plotAreaClick)="onPlotAreaClick2($event)"
[transitions]="false"
>
<kendo-chart-series>
<kendo-chart-series-item type="line" name="second" [data]="this.getData2() | async" [color]="colorFn">
</kendo-chart-series-item>
</kendo-chart-series>
</kendo-chart>
export class AppComponent implements OnInit{
public data2 = [];
public categories2: number[] = [2002, 2003, 2004, 2005, 2006, 2007, 2008];
getData2():Observable<any[]>{
return of(this.data2);
}
ngOnInit(): void {
this.data2 = [10, 40, 19, 6, 70,20,120];
}
public onPlotAreaClick2(e): void {
let id=this.categories2.indexOf(e.category);
let prop=(Math.round(e.value / 5) * 5);
this.data2[id]=prop //Ok but not Chart Refresh WHY ??
}
}
[/code]