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

图表超出容器,4.1.12版本 #3381

Closed
Jokerdeath opened this issue Apr 19, 2021 · 3 comments
Closed

图表超出容器,4.1.12版本 #3381

Jokerdeath opened this issue Apr 19, 2021 · 3 comments

Comments

@Jokerdeath
Copy link

先上图:
image
image

问题描述:
设置容器宽度100%,设置autoFit: true
图标超出容器

这里进行了手动修复:
// 修改autoFit第一次渲染超出父级容器的问题
const e = document.createEvent('Event')
e.initEvent('resize', true, true)
window.dispatchEvent(e)

版本:4.1.12

@Jokerdeath
Copy link
Author

初次渲染会有,再次渲染消失

@hustcc
Copy link
Member

hustcc commented Apr 25, 2021

一定是的你 外部 容器就是这么大的。调试一下图表大小和图表容器的大小,图表是跟随容器大小的!

@hustcc hustcc closed this as completed Apr 25, 2021
@lgy1159
Copy link

lgy1159 commented Mar 16, 2023

我也遇到了这个问题,确认外部容器宽度 是600 画布宽度不知道为什么是1200 ,用了 changeSize 去改变宽度也没有用

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

3 participants