antvis/G2




The issue has been closed
Bug - Broken auto fit container #4540
cd-alexslater posted onGitHub
Hey Everyone,
Thought I'd mention this as the demo on the site is broken as well.
When using autoFit: true in the new Chart() configuration, you get this: <img width="447" alt="image" src="https://user-images.githubusercontent.com/114569661/209939011-1df8f820-57b9-4a77-9b77-593636ce53bd.png">
Steps to reproduce:
1) Go to the 'Dual' demo in code sandbox: https://codesandbox.io/s/q3t41i 2) Change the dependency version to the latest beta version (it's v5 code but the code sandbox is set to v4 for whatever reason) 3) Observe that nothing renders 4) Resize the window with the preview in code sandbox and it will reload, and you'll see the problem I pictured above.