Closed myl-maria closed 5 years ago
Not sure why this happens since td-layout doesnt seem to have any issues with everything else, but we already have an echarts
component that works perfectly.
https://github.com/Teradata/covalent-echarts
It looks to me like its an ngx-echarts
issue with change detection.
Do you want to request a feature or report a bug?
bug
Bug Report
When I use covalent-quickstart with ngx-echarts, if I put a \<div echarts...>\</div> inside \<td-layout>\</td-layout>, the picture can't be shown correctly at first, only blank block on the page. If I resize the window at this time, the picture can be shown on the page. I followed the steps to add the support for ngx-echarts in this link:https://xieziyu.github.io/ngx-echarts/#/home. The \<div echarts...>\</div> outside the \<td-layout>\</td-layout> can be displayed correct. This problem will cause the ngx-echarts can't be used in covalent.
Screenshots or link to CodePen/Plunker/JSfiddle
Code of html: Load the page:
After resize the window:
What is the expected behavior?
I wish the picture drawn by echarts can be shown correctly when the page is loaded at the first time.
Which version of Angular and Material, and which browser and OS does this issue affect?
I used latest Covalent-quickstart from github, Chrome 64.0.3282.140, Mac OS X EI Capitan 10.11.6 .