peder1001 edited a comment on issue #6202:
URL:
https://github.com/apache/incubator-echarts/issues/6202#issuecomment-676418616
In Angular using ngx-echarts. I solved it temporarily as follows.
First get a hold of your echarts instance:
In your markup, add "chartInit" and reference your desired function
`<div echarts [options]="this.options" [merge]="updateOptions"
(chartInit)="this.onChartInit($event)" class="chart"></div>
`
In your ts:
```
onChartInit(ec) {
this.echartsInstance = ec;
// do whatever you want here
}
```
Then when updating your chart (in my case in the updateOptions function), I
just added:
```
if (this.echartsInstance) {
// Temp fix for bug, see:
https://github.com/apache/incubator-echarts/issues/6202
this.echartsInstance.clear();
this.echartsInstance.setOption(this.options);
}
```
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]