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

[chart] Charts plugin in simple example has strange animation and results in blank white rectangle #175

Open
nbarnwell opened this issue Dec 6, 2023 · 4 comments

Comments

@nbarnwell
Copy link

nbarnwell commented Dec 6, 2023

Tested in Chrome and Edge. Chart appears briefly, very slowly animated, getting bigger and bigger then bang - white box with a sad face.

I took the minimal.html file and put the example code in from the documentation: https://jsfiddle.net/mgb5tea1/1/

@rajgoel
Copy link
Owner

rajgoel commented Dec 6, 2023

It is not completely broken and works fine in the demo: https://rajgoel.github.io/reveal.js-demos/?topic=chart

Please reopen with a less offensive title.

@rajgoel rajgoel closed this as completed Dec 6, 2023
@nbarnwell
Copy link
Author

Fair enough, I'll change the title. The demo is the first place I went. However, the demo demonstrates some other things that make it hard to directly compare with the basic version I posted to find what I've done wrong.

@nbarnwell nbarnwell changed the title Charts completely broken Help! Presumed user error: Charts plugin in simple example has strange animation and results in blank white rectangle Dec 6, 2023
@rajgoel
Copy link
Owner

rajgoel commented Dec 6, 2023

Will take a look at this as soon as I find time. One possible cause could be related to the updates in the most recent reveal.js version. Using an older reveal.js version would be one thing to try.

@rajgoel rajgoel reopened this Dec 6, 2023
@rajgoel rajgoel changed the title Help! Presumed user error: Charts plugin in simple example has strange animation and results in blank white rectangle Charts plugin in simple example has strange animation and results in blank white rectangle Dec 6, 2023
@rajgoel rajgoel changed the title Charts plugin in simple example has strange animation and results in blank white rectangle [chart] Charts plugin in simple example has strange animation and results in blank white rectangle Dec 6, 2023
@fuhrmanator
Copy link
Contributor

Wrapping the <canvas> with a <div style="height:480px"> (of a fixed height) will prevent this bug.

I think I changed the fiddle: https://jsfiddle.net/5g0pf1r9/

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