ngx-echarts icon indicating copy to clipboard operation
ngx-echarts copied to clipboard

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

Open dilotec-2015 opened this issue 7 years ago • 2 comments

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

dilotec-2015 avatar Jan 03 '18 16:01 dilotec-2015

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

xieziyu avatar Jan 04 '18 03:01 xieziyu

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?

zevero avatar Feb 28 '19 12:02 zevero