We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
用以下代码创建chart并设置height时,height如果设置<100的数值无效, 页面查看渲染后得到的canvas元素,height一定是100.
const chart = new G2.Chart({ container: 'container', // autoFit: true, height:90, width: 401, }); ...
但如果使用changeSize修改宽高,是可以成功设置height<100的数值.
chart.changeSize(401, 90); chart.render();
我用new Chart设置高度死活不成功, 调试了一下午,快崩溃了,最后发现changeSize居然能成功 请问这是new Chart构造方法的一个bug吗?
The text was updated successfully, but these errors were encountered:
fix(#2215): fix chart min size = 100
c0a28a7
e49646d
hustcc
Successfully merging a pull request may close this issue.
用以下代码创建chart并设置height时,height如果设置<100的数值无效, 页面查看渲染后得到的canvas元素,height一定是100.
但如果使用changeSize修改宽高,是可以成功设置height<100的数值.
我用new Chart设置高度死活不成功, 调试了一下午,快崩溃了,最后发现changeSize居然能成功
请问这是new Chart构造方法的一个bug吗?
The text was updated successfully, but these errors were encountered: