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

关于 EChart 页面多个图表,改变窗体大小图表不渲染问题 | 我是瘦子 #23

Open
shizhonghai opened this issue Aug 4, 2020 · 0 comments

Comments

@shizhonghai
Copy link
Owner

https://shizhonghai.github.io/2020/04/14/echart-resize/

1.图表宽度需设置成 100% 2.同页面多图表请用 addEventListener 方法监听窗体大小改变 123456789// 监听窗口变化 - 只刷新最后一个图表,后定义的会覆盖前面定义的,只有1个生效window.onresize = ()=> { EChart.resize(); };// 监听窗口变化 - 多个图表同时刷新window.addE

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

No branches or pull requests

1 participant