xieziyu/ngx-echarts

Width and Height 100% of parent container

vatsake opened this issue · 4 comments

How do I set width and height 100% of parent container?

I can set a fixed dimensions through initOpts but not %.

*EDIT
It works if parent container has fixed dimensions, but if I have dynamic dimensions with flex (that has 50% of page width) it doesn't work.
https://stackblitz.com/edit/angular-9-ngx-echarts-tfchwv