xieziyu / ngx-echarts

An angular (ver >= 2.x) directive for ECharts (ver >= 3.x)
https://xieziyu.github.io/ngx-echarts/
MIT License
1.1k stars 195 forks source link

charts are not updated on dynamic changes in the options/series #58

Open dilotec-2015 opened 6 years ago

dilotec-2015 commented 6 years ago

If I change the values in the series after the chart/map has been drawn, the chart/map will not be updated

Angular CLI: 1.5.5 Node: 8.9.3 OS: win32 x64 Angular: 5.1.2 Echarts: 3.5.8 Ngx-Echarts: 2.0.1

xieziyu commented 6 years ago

@dilotec-2015 Please notice that: your changes may not trigger Angular change detection. So please make sure your option object reference has been changed.

zevero commented 5 years ago

it IS working when I assign the new data to options and do

this.chartOption = Object.assign({}, this.chartOption);

Is this REALLY the way it is intended to be? Is it REALLY working efficiently with a high number of datapoints?