-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[Bug]:Chart display & scaling #1212
Comments
I think this is the chromium issue. Canvas part disappears when changing tabs. In old chrome versions it works fine. Update: on 125.0.6422.77 version issue is fixed. |
I have also noticed a similar issue when the page is zoomed below 100%. |
@neptoo I had the same problem on the pie chart. It happened on some screens and the zoom did not play any part... |
when I apply height and width, it keeps the ratio and takes the smallest to fit. Is it how it is supposed to work? |
@zirho yes.. it auto-calculates the ratio of canvas inside the wrapper based on the wrapper width and height and fits the pie (+ legend if you have it) inside of it if you hide the legend, the pie will take the whole space |
Would you like to work on a fix?
Current and expected behavior
Reproduction
https://react-chartjs-2.js.org/examples/vertical-bar-chart
chart.js version
v4.4.3
react-chartjs-2 version
v5.2.0
Possible solution
No response
The text was updated successfully, but these errors were encountered: