reveal.js-plugins icon indicating copy to clipboard operation
reveal.js-plugins copied to clipboard

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

Open nbarnwell opened this issue 1 year ago • 4 comments

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/

nbarnwell avatar Dec 06 '23 09:12 nbarnwell

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 avatar Dec 06 '23 11:12 rajgoel

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 avatar Dec 06 '23 12:12 nbarnwell

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 avatar Dec 06 '23 12:12 rajgoel

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/

fuhrmanator avatar Jan 12 '24 18:01 fuhrmanator