Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ionic4 是否无法使用? #35

Closed
ionicview opened this issue Dec 2, 2018 · 2 comments
Closed

Ionic4 是否无法使用? #35

ionicview opened this issue Dec 2, 2018 · 2 comments

Comments

@ionicview
Copy link

我创建了Ionic4的一个新工程,似乎图形无法显示。
又创建了一个Ionic3的新工程,图形正常显示了。
Ionic4是无法使用ngx-echarts吗?

@twp0217
Copy link
Owner

twp0217 commented Dec 2, 2018

我看了下,应该是Ionic4的布局方式导致echarts获取到的宽度为0,因此没有显示。
你可以设置下[autoResize]="true",让echarts自动调整,还有也可以通过设置initOpts中的宽度

@ionicview
Copy link
Author

非常感谢,好用了。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants