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

图表根据容器自适应 #421

Closed
jonny-xhl opened this issue Feb 25, 2020 · 2 comments
Closed

图表根据容器自适应 #421

jonny-xhl opened this issue Feb 25, 2020 · 2 comments

Comments

@jonny-xhl
Copy link

请问图表如何根据容器自适应调整大小呢?

现在通过自定义width,height配合grid的x y来调整,但是这样没有自适应

@Justineo
Copy link
Member

CSS 设置长宽 100%,加上 autoresize prop。

@jonny-xhl
Copy link
Author

当我设置 ==autoresize:true,== 时反而没有按照父元素的容器来自适应。

倒是没有设置这个属性的时候直接设置内联样式 100%还可以。

请问是怎么回事?

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